This commit is contained in:
2020-09-14 23:36:04 +00:00
parent e44f6b2ef7
commit f9af8c939c
2 changed files with 72 additions and 8 deletions

View File

@@ -134,3 +134,20 @@ Render outputs
PDF: https://jsreport.net/learn/pdf-recipes
Outputs 5 different pdf converters because they all support different feature sets which is ominous
BAR CODE STUFF
Bar codes: https://github.com/metafloor/bwip-js
https://stackoverflow.com/questions/19017512/use-canvas-inside-a-handlebars-template
https://github.com/metafloor/bwip-js#browser-usage
https://www.scandit.com/blog/types-barcodes-choosing-right-barcode/
https://github.com/metafloor/bwip-js/wiki/BWIPP-Barcode-Types
let opt = {
bcid: "code128", // Barcode type
text: "0123456789", // Text to encode
scale: 3, // 3x scaling factor
height: 10, // Bar height, in millimeters
includetext: true, // Show human-readable text
textxalign: "center" // Always good to set this
};