We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example
const JsBarcode = require('jsbarcode'); const Canvas = require("canvas"); const printer = require('node-native-printer');
let canvas = Canvas.createCanvas(); JsBarcode(canvas, "Hello");
let options = { "collate": true, "landscape": true, "paperSize": "Letter" }
printer.printCanvas(canvas, options, 'PrinterName')
The text was updated successfully, but these errors were encountered:
//Workarround
const fs = require('fs'); const os = require('os'); const JsBarcode = require('jsbarcode'); const Canvas = require("canvas"); const printer = require('node-native-printer');
var buf = canvas.toBuffer(); fs.writeFileSync( os.tmpdir() + "/tmp.png", buf);
printer.print(os.tmpdir() + "/tmp.png", options, 'PrinterName')
Sorry, something went wrong.
No branches or pull requests
Example
const JsBarcode = require('jsbarcode');
const Canvas = require("canvas");
const printer = require('node-native-printer');
let canvas = Canvas.createCanvas();
JsBarcode(canvas, "Hello");
let options = {
"collate": true,
"landscape": true,
"paperSize": "Letter"
}
printer.printCanvas(canvas, options, 'PrinterName')
The text was updated successfully, but these errors were encountered: