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.6 to 0.1.7

2

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

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