THotPDF.GetLoadedJavaScriptSource Method

Reads the source code of the document-level JavaScript script with the specified name in the loaded PDF document

Declaration

function GetLoadedJavaScriptSource(const AName: AnsiString): AnsiString;

Unit

HPDFDoc

Parameters

NamePurpose
ANameThe name of the script entry in the JavaScript name tree, used to locate the target script

Return value

Returns the JavaScript source code string corresponding to the specified name; returns an empty string if the name does not exist

Usage notes

Related APIs