We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7ae243 commit 1f60f32Copy full SHA for 1f60f32
lib/scripts/pdf_a4_portrait.js
@@ -57,6 +57,9 @@ page.onLoadFinished = function (status) {
57
// The paperSize object must be set at once
58
page.paperSize = definePaperSize(getContent(page), options)
59
60
+ // Evaluate custom JavaScript
61
+ if (options.evaluateScript) page.evaluateJavaScript(options.evaluateScript)
62
+
63
// Output to parent process
64
var fileOptions = {
65
type: options.type || 'pdf',
0 commit comments