PDFium Component Docs

JavaScriptAction 속성

이 API 항목은 식별자, 시그니처, 코드 블록, PDF 용어를 원래 형태로 유지합니다.
컴포넌트: TPdf  ·  유닛: PDFium
인덱스 속성 — 문서 수준 JavaScript action 하나를 반환합니다 (name + Type + Source string)

구문

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

설명

문서 수준 JavaScript action 하나를 반환하는 인덱스 읽기 전용 속성입니다 (name + Type + Source string)

ActiveTrue여야 합니다. index가 유효 범위를 벗어나면 결과는 정의되지 않습니다. 0 .. JavaScriptActionCount - 1 범위의 값을 넘기세요(또는 비 카운트 변형에서는 array의 Length를 사용하세요)

반환된 record는 호출 시점의 value를 스냅샷으로 담고 있으며, 이후 문서 편집은 이전에 반환된 record를 수정하지 않습니다

매개변수

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

비고

예제

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;

참고 항목

JavaScriptActions, JavaScriptActionCount