THotPDF.RemoveLoadedJavaScriptAll Method
Completely removes all embedded JavaScript code and actions contained within the currently loaded document in one go.
Declaration
procedure RemoveLoadedJavaScriptAll;
Unit
HPDFDoc
Usage notes
| Name | Purpose |
|---|---|
| This member takes no explicit parameters | |
Return value
This member returns no value
Usage notes
- Use this API in the document creation workflow before the affected page, resource, field or catalogue object is finalised
- Ideal for security sanitisation — stripping a possibly harmful legacy PDF down to a read-only viewing document
- After removal, call the resave method; the newly generated PDF document will not carry any runtime JavaScript security risks.