Comparing version 0.1.6 to 0.1.7
{ | ||
"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; |
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
98962
2578