Default JavaScript engine that executes PDF JS actions via new Function().
Security note: This engine runs PDF-sourced JavaScript with access to the
ambient JS environment (e.g. globalThis, constructors, network APIs). It is
NOT sandboxed and should only be used with trusted PDF documents. For untrusted
documents, provide your own PdfJsEngine implementation that evaluates code
in an isolated context (e.g. Node vm, a dedicated realm, or a Web Worker).
Default JavaScript engine that executes PDF JS actions via
new Function().Security note: This engine runs PDF-sourced JavaScript with access to the ambient JS environment (e.g.
globalThis, constructors, network APIs). It is NOT sandboxed and should only be used with trusted PDF documents. For untrusted documents, provide your ownPdfJsEngineimplementation that evaluates code in an isolated context (e.g. Nodevm, a dedicated realm, or a Web Worker).