PDFium Delphi Component Docs

JavaScriptAction Eigenschaft

Komponente: TPdf  ·  Unit: PDFium
Indizierte Eigenschaft - gibt eine dokumentweite JavaScript-Aktion zurück (Name und Script)

Syntax

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

Beschreibung

Indizierte Read-only-Eigenschaft, die eine dokumentweite JavaScript-Aktion liefert (Name und Script)

Setzt voraus, dass Active True ist. Übergeben Sie einen nullbasierten Index in 0 .. JavaScriptActionCount - 1

Der zurückgegebene TPdfJavaScriptAction-Record ist ein Schnappschuss des Eintrags im /Names/JavaScript-Namensbaum des Dokuments

Parameter

Index0-basierter Index im Bereich 0 .. JavaScriptActionCount - 1

Hinweise

Beispiel

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;

Siehe auch

JavaScriptActions, JavaScriptActionCount