disable attempted execution of scripts in PDFs

it triggered a CSP error which prevented teh rest of the document from rendering
pull/1/head
ansuz 4 years ago
parent 9c3dc7aa9c
commit a5245fba20

@ -5355,10 +5355,12 @@ var PDFFunction = function PDFFunctionClosure() {
var domain = IR[1];
var range = IR[2];
var code = IR[3];
/*
var compiled = new PostScriptCompiler().compile(code, domain, range);
if (compiled) {
return new Function('src', 'srcOffset', 'dest', 'destOffset', compiled);
}
*/
(0, _util.info)('Unable to compile PS function');
var numOutputs = range.length >> 1;
var numInputs = domain.length >> 1;
@ -38545,4 +38547,4 @@ if (typeof PDFJS === 'undefined' || !PDFJS.compatibilityChecked) {
/***/ })
/******/ ]);
});
//# sourceMappingURL=pdf.worker.js.map
//# sourceMappingURL=pdf.worker.js.map

Loading…
Cancel
Save