Name and Script)property JavaScriptAction[Index: Integer]: TPdfJavaScriptAction; // read only
Indexed read-only property that returns one document-level JavaScript action (Name and Script)
Requires Active to be True. Pass a zero-based index in 0 .. JavaScriptActionCount - 1
The returned TPdfJavaScriptAction record is a snapshot of the entry in the document's /Names/JavaScript name tree
| Index | Zero-based index in the range 0 .. JavaScriptActionCount - 1 |
JavaScriptAction only inspects the script text and never executes JavaScriptJavaScriptActions to retrieve all document-level JavaScript actions as a single dynamic array
var
I: Integer;
begin
if not Pdf1.Active then Exit;
for I := 0 to Pdf1.JavaScriptActionCount - 1 do
begin
// inspect Pdf1.JavaScriptAction[I]
Memo1.Lines.Add(IntToStr(I));
end;
end;