PDFium Component Docs

JavaScriptAction 속성

컴포넌트: TPdf  ·  유닛: PDFium
인덱스 속성 — 문서 수준 JavaScript action 하나를 반환합니다 (name + Type + Source string)

Syntax

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

Description

Indexed read-only property that returns one document-level JavaScript action (name + Type + Source string)

Requires Active to be True. The result is undefined when the index is outside the valid range; pass values in 0 .. JavaScriptActionCount - 1 (or use the array's Length for non-counted variants).

The returned record is a snapshot of the value at the time of the call; subsequent edits to the document do not modify previously returned records.

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