Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cross-platform-pdf-generator

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cross-platform-pdf-generator - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

2

package.json
{
"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;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc