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

pdfmake

Package Overview
Dependencies
Maintainers
1
Versions
103
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pdfmake - npm Package Compare versions

Comparing version 0.1.6 to 0.1.7

2

bower.json
{
"name": "pdfmake",
"version": "0.1.6",
"version": "0.1.7",
"homepage": "https://bpampuch.github.io/pdfmake",

@@ -5,0 +5,0 @@ "authors": [

{
"name": "pdfmake",
"version": "0.1.6",
"version": "0.1.7",
"description": "Client/server side PDF printing in pure JavaScript",

@@ -5,0 +5,0 @@ "main": "src/printer.js",

@@ -101,3 +101,16 @@ /* jslint node: true */

if(options.autoPrint){
console.warn('no autoprint support, will be added in a couple of days');
var jsRef = this.pdfKitDoc.ref({
S: 'JavaScript',
JS: new StringObject('this.print\\(true\\);')
});
var namesRef = this.pdfKitDoc.ref({
Names: [new StringObject('EmbeddedJS'), new PdfKit.PDFReference(this.pdfKitDoc, jsRef.id)],
});
jsRef.end();
namesRef.end();
this.pdfKitDoc._root.data.Names = {
JavaScript: new PdfKit.PDFReference(this.pdfKitDoc, namesRef.id)
};
}

@@ -104,0 +117,0 @@ return this.pdfKitDoc;

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