diff --git a/dist/package.json b/dist/package.json index 8f2b28e..ce695e5 100644 --- a/dist/package.json +++ b/dist/package.json @@ -1,6 +1,6 @@ { "name": "jspdf-product-label-54x70", - "version": "1.2.5", + "version": "1.2.6", "main": "src/app.js", "author": "André Kelling", "description": "Dymo Label PDF printing 54 x 70mm.", diff --git a/src/print/partials/logo.js b/src/print/partials/logo.js index e34c8a8..7dd21ee 100644 --- a/src/print/partials/logo.js +++ b/src/print/partials/logo.js @@ -16,7 +16,7 @@ export default (doc, logo) => { const startY = doc.vars.startY.logo; const pageWidth = doc.internal.pageSize.width; - const maxWidthFactor = 0.66; + const maxWidthFactor = 0.7; const maxWidthInPx = Math.round((pageWidth * maxWidthFactor) * mmDpiFactor); // minus 4mm, 2mm spacing for each side const maxHeightLogo = 9; // in mm from first startY for the productName const maxHeightLogoInPx = Math.round(maxHeightLogo * mmDpiFactor); // minus 6mm, for spacing to top and 5 for better spacing and calculation at all diff --git a/src/print/partials/product-code.js b/src/print/partials/product-code.js index d8b2776..822636e 100644 --- a/src/print/partials/product-code.js +++ b/src/print/partials/product-code.js @@ -16,7 +16,6 @@ export default (doc, productCode, pageWidth) => { let startY = doc.vars.startY.productCode; doc.setFontSize(doc.vars.fontSizes.SmallFontSize); - doc.setTextColor(150, 150, 150); // check if the product code is too long for the page ONCE const stringWidthInMm = doc.getStringUnitWidth(productCode) * mmDpiFactor; @@ -27,5 +26,4 @@ export default (doc, productCode, pageWidth) => { } doc.text(productCode, startX, startY, {maxWidth}); - doc.setTextColor(0, 0, 0); }