cross-platform-pdf-generator
Advanced tools
Comparing version 2.0.2 to 2.0.3
{ | ||
"name": "cross-platform-pdf-generator", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "pulsation PDF generator for web and ios", | ||
@@ -5,0 +5,0 @@ "main": "main.js", |
@@ -128,10 +128,10 @@ import { PDFDocument, StandardFonts, rgb, PDFFont, PDFPage, PDFTextField, PDFImage } from 'pdf-lib'; | ||
const name = field.getName(); | ||
let value = data.find(v => (v.title === name || v.id === name) && v.type === "text"); | ||
let value = data.find(v => v.title === name || v.id === name) | ||
if (value?.value === undefined) continue; | ||
if (value?.component === "signature") { | ||
const imageValue = data.find(v => (v.title === name || v.id === name) && v.type === "image") | ||
await drawTextInField(imageValue, field, document); | ||
value = data.find(v => (v.title === name || v.id === name) && v.type === "image") | ||
} | ||
if (value?.value === undefined) continue; | ||
await drawTextInField(value, field, document); | ||
unhandeld = unhandeld.filter(e => e.title !== name && e.id !== name); | ||
await drawTextInField(value, field, document); | ||
} | ||
@@ -138,0 +138,0 @@ |
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
74113
1752