PDFium Delphi Component 文件

JavaScriptAction 屬性

元件: TPdf  ·  單元: PDFium
索引屬性 — 傳回一個文件層級的 JavaScript 動作(名稱 + Type + Source 字串)

Syntax

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

Description

索引式唯讀屬性,傳回單一文件層級的 JavaScript 動作(名稱 + Type + Source 字串)

要求 Active 為 True。索引超出有效範圍時結果未定義;請傳入 0 .. JavaScriptActionCount - 1 內的值(非計數式變體則使用陣列的 Length)

傳回的記錄是呼叫當下數值的快照;後續對文件的編輯不會修改先前傳回的記錄

Parameters

Index以 0 為基底的索引,範圍 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