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 does not return a value
Usage notes
- Use this API in the document creation workflow before the affected page, resource, field, or catalog object is finalized
- Keep object names, field names, resource names, and returned handles stable until the document is finalized
- Loaded-document object references may be indirect; resolve arrays, dictionaries, or streams before inspecting nested values