Skip to content

Instantly share code, notes, and snippets.

@destpat
Last active October 21, 2019 15:43
Show Gist options
  • Save destpat/1b601dcdd6841e9f8ded8adbf646c524 to your computer and use it in GitHub Desktop.
Save destpat/1b601dcdd6841e9f8ded8adbf646c524 to your computer and use it in GitHub Desktop.
Generate pdf label
/**
* Use this website for generate pdf label http://raw.githack.com/MrRio/jsPDF/master/
* copy / past the code
**/
var doc = new jsPDF('l', 'mm', [70,24]);
doc.setFontSize(15);
var i;
for (i = 0; i < 101; i++) {
doc.text('SIST' + i, 3, 7);
doc.addPage('100', 'l00');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment