THotPDF.RemoveLoadedJavaScript Method
Removes the document-level JavaScript with the given name from a loaded PDF: the entry leaves the /Names /JavaScript name tree, so the script is gone from the saved file, and the loaded JavaScript list no longer reports it
Declaration
procedure RemoveLoadedJavaScript(const AName: AnsiString);
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
AName | PDF resource name, packet name, profile name or caller-defined identifier |
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
- Keep object names, field names, resource names and returned handles stable until the document is finalised
- Loaded-document object references may be indirect; resolve arrays, dictionaries or streams before inspecting nested values