cross-platform-pdf-generator
Advanced tools
Comparing version 0.1.4 to 0.1.5
{ | ||
"name": "cross-platform-pdf-generator", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"description": "pulsation pdg generator for web and ios", | ||
@@ -5,0 +5,0 @@ "main": "main.js", |
@@ -424,6 +424,12 @@ import { PDFDocument, StandardFonts, rgb, PDFFont, PDFPage, PDFTextField } from 'pdf-lib'; | ||
const font = await document.embedFont(StandardFonts.Helvetica); | ||
const img = Img.pulsation; | ||
const img = json?.documentSettings?.footerPNG; | ||
//create PDF Img | ||
const pngImage = await document.embedPng(img); | ||
let pngImage; | ||
try { | ||
const baseIMG = await document.embedPng(img); | ||
pngImage = baseIMG; | ||
}catch { | ||
pngImage = null; | ||
} | ||
@@ -430,0 +436,0 @@ let i = 1; |
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
748121
8230