property JavaScriptAction[Index: Integer]: TPdfJavaScriptAction; // read only
索引只读属性,返回一个文档级 JavaScript 动作(名称 + Type + Source 字符串)
要求 Active 为 True。当索引超出有效范围时,结果是未定义的;传入 0 .. JavaScriptActionCount - 1 范围内的值(对于非计数变体,可使用数组的 Length)
返回的记录是调用时值的快照;之后对文档的编辑不会修改先前返回的记录
| Index | 位于 0 .. JavaScriptActionCount - 1 范围内的基于 0 的索引 |
var
I: Integer;
begin
if not Pdf1.Active then Exit;
for I := 0 to Pdf1.JavaScriptActionCount - 1 do
begin
// 检查 Pdf1.JavaScriptAction[I]
Memo1.Lines.Add(IntToStr(I));
end;
end;