THotPDF.RemoveLoadedJavaScript Method
Removes the specified script entry from the named JavaScript collection of the loaded PDF document by name
Declaration
procedure RemoveLoadedJavaScript(const AName: AnsiString);
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
AName | The name of the script entry to delete, which must exactly match the name passed during AddLoadedDocumentJavaScript |
Usage notes
- 名称匹配区分大小写,若名称不存在则静默返回,不会抛出异常
- If all scripts need to be removed, it is recommended to use RemoveLoadedJavaScriptAll for higher efficiency
- The document must be saved after deletion for the changes to be written to the output file