Print tags
Node.js module to generate PDFs in commercial tags formats and ready to print
Installation
npm install --save print-tag
Usage
var pt = new PrintTicket('pimaco_6187');
pt.doc.pipe( fs.createWriteStream('test/results/output.pdf') );
pt.doc.fontSize(6);
pt.makeTickets({
count: data.length
}, function onSetOneTag(i, marginLeft, marginTop, size, next) {
pt.doc.text(data[i].name, marginLeft, marginTop, size);
pt.doc.lineWidth(0.1);
pt.doc.rect(marginLeft, marginTop, size.width, size.height).stroke();
next();
}, function afterSetAllTags(){
pt.doc.end();
});
pt.doc.on('end', function(){
done();
});
Formats
Please help with more formats in: https://github.com/albertosouza/print-tag/blob/master/lib/formats.js
Avaible:
- pimaco_6187
- pimaco_6180
- pimaco_6081
- pimaco_a4355
Example:
Authors
Contributors
License
MIT © Alberto Souza