Web SDKv1.0.0

PDFDocument.containsJavaScript

The document declares embedded JavaScript. The SDK never executes it; use this to screen untrusted uploads or warn the user.
getterPropertiessince 1.0.0

Signature

get containsJavaScript(): boolean

Returns

boolean

Throws

  • DOCUMENT_CLOSED — read on a closed document.

Example

TypeScript
if (doc.containsJavaScript) showWarning('This file contains scripts');

More in PDFDocument