cross-platform-pdf-generator
Advanced tools
Comparing version 0.1.6 to 0.1.7
{ | ||
"name": "cross-platform-pdf-generator", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"description": "pulsation pdg generator for web and ios", | ||
@@ -5,0 +5,0 @@ "main": "main.js", |
@@ -473,2 +473,4 @@ import { PDFDocument, StandardFonts, rgb, PDFFont, PDFPage, PDFTextField } from 'pdf-lib'; | ||
let leftMid = (footerBox.size.height * 0.5); | ||
if (img !== null) { | ||
@@ -478,7 +480,7 @@ const imgWidth = 70; | ||
const imgY = (footerBox.size.height * 0.5) - (imgHeight * 0.5); | ||
leftMid = (footerBox.size.height * 0.5) - (imgHeight * 0.5); | ||
page.drawImage(img, { | ||
x: footerBox.origin.x, | ||
y: imgY + (versionHeight * 0.5), | ||
y: leftMid + (versionHeight * 0.5), | ||
width: imgWidth, | ||
@@ -515,4 +517,8 @@ height: imgHeight | ||
const versionText = "version: " + process.env.npm_package_version; | ||
/*Just works in node environment | ||
const versionText = "Version: " + process.env.npm_package_version; | ||
*/ | ||
const versionText = "Version: " + "0.1.7"; | ||
page.drawText( | ||
@@ -522,3 +528,3 @@ versionText, | ||
x: footerBox.origin.x, | ||
y: imgY - 2, //just spacing | ||
y: leftMid - 2, //just spacing | ||
font: font, | ||
@@ -525,0 +531,0 @@ size: 8, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
748383
8239
0