PDFium Delphi Component Docs

JavaScriptAction property

Component: TPdf  ·  Unit: PDFium
Indexed property — returns one document-level JavaScript action (Name and Script)

Syntax

property JavaScriptAction[Index: Integer]: TPdfJavaScriptAction; // read only

Description

Indexed read-only property giving one document-level JavaScript action (Name and Script)

Needs 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

Parameters

IndexZero-based index in the range 0 .. JavaScriptActionCount - 1

Remarks

Example

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;

See Also

JavaScriptActions, JavaScriptActionCount