Name 與 Script)property JavaScriptAction[Index: Integer]: TPdfJavaScriptAction; // read only
索引式唯讀屬性,傳回單一文件層級的 JavaScript 動作(Name 與 Script)
要求 Active 為 True。傳入 0 .. JavaScriptActionCount - 1 內以 0 為基底的索引
傳回的 TPdfJavaScriptAction 記錄是文件 /Names/JavaScript 名稱樹中該項目的快照
| Index | 以 0 為基底的索引,範圍 0 .. JavaScriptActionCount - 1 |
JavaScriptAction 只檢視腳本文字,絕不執行 JavaScriptJavaScriptActions
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;