THotPDF.AddLoadedDocumentJavaScript Method

Adds a document-level JavaScript to a loaded PDF, or replaces the script of an existing name. The script is stored as a JavaScript action in the Catalog /Names /JavaScript name tree at its sorted position and is written by the next SaveLoadedDocument or incremental update; GetLoadedJavaScriptSource returns it right away

Declaration

procedure AddLoadedDocumentJavaScript(const AName, ABody: AnsiString);

Unit

HPDFDoc

Parameters

NamePurpose
ANamePDF resource name, packet name, profile name, or caller-defined identifier
ABodyInput used by AddLoadedDocumentJavaScript

Return value

This member does not return a value

Usage notes

Related APIs