cross-platform-pdf-generator
Advanced tools
Comparing version 0.2.2 to 0.2.3
{ | ||
"name": "cross-platform-pdf-generator", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"description": "pulsation pdg generator for web and ios", | ||
@@ -5,0 +5,0 @@ "main": "main.js", |
@@ -97,4 +97,2 @@ import { PDFDocument, StandardFonts, rgb, PDFFont, PDFPage, PDFTextField } from 'pdf-lib'; | ||
const field = fields[i]; | ||
const type = field.constructor.name | ||
if (type !== "PDFTextField") continue; | ||
const name = field.getName(); | ||
@@ -105,3 +103,2 @@ const value = data.find(v => v.title === name); | ||
await drawTextInField(value, field, document); | ||
console.log(`${type}: ${name}`); | ||
} | ||
@@ -434,3 +431,3 @@ | ||
const font = await document.embedFont(StandardFonts.Helvetica); | ||
const img = json?.documentSettings?.footerJPGx; | ||
const img = json?.documentSettings?.footerJPG; | ||
@@ -437,0 +434,0 @@ //create PDF Img |
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
65924
1540