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 straight away

Declaration

procedure AddLoadedDocumentJavaScript(const AName, ABody: AnsiString);

Unit

HPDFDoc

Parameters

NamePurpose
ANamePDF resource name, packet name, profile name or caller-defined identifier
ABodyInput supplied to AddLoadedDocumentJavaScript

Return value

This member returns no value

Usage notes

Related APIs