THPDFButtonAction Type

Wählt die /A-Aktion, die beim Klicken an ein Pushbutton-Formular-Widget gebunden ist (PDF 1.7 ISO 32000-1 12.6.4 / 12.7.5)

Deklaration

THPDFButtonAction= (baNone, // Plain pushbutton, no /A entry
  baSubmitURL, // /S /SubmitForm /F << /FS /URL /F (url) >> (PDF 1.2)
  baResetForm, // /S /ResetForm (PDF 1.2)
  baJavaScript, // /S /JavaScript /JS (code) (PDF 1.3)
  baURI, // /S /URI /URI (url) (PDF 1.1)
  baNamed, // v2.119.18 /S /Named /N <param> (PDF 1.1 §12.6.4.11)
  // Built-in viewer commands: NextPage / PrevPage /
  // FirstPage / LastPage. Acrobat extensions: Print,
  // SaveAs, GoBack, GoForward, GoToPage. PDF/A allows
  // the four standard nav names per §6.6.1
  baHide, // v2.119.18 /S /Hide /T <field-name> /H true
  // (PDF 1.2 §12.6.4.10). Hides the named widget(s);
  // Param is the target field name. Spec /H default
  // is true so we emit it explicitly to make the
  // intent self-documenting
  baShow, // v2.119.20 /S /Hide /T <field-name> /H false
  // Mirror of baHide that re-shows the widget
  // PDF/A + PDF/X allowed (widget visibility only)
  baImportData); // v2.119.20 /S /ImportData /F (filename) (PDF 1.2

Unit

HPDFDoc

Werte

WertBedeutung
baNoneEinfacher Pushbutton ohne /A-Eintrag
baSubmitURL/SubmitForm-Aktion; Param ist die Übermittlungs-URL (PDF 1.2)
baResetForm/ResetForm-Aktion, die die Formularfelder leert (PDF 1.2)
baJavaScript/JavaScript-Aktion; Param ist der Skripttext (PDF 1.3)
baURI/URI-Aktion, die zur URL in Param springt (PDF 1.1)
baNamed/Named-Aktion; Param ist ein eingebauter Viewer-Befehl (NextPage, PrevPage, FirstPage, LastPage) oder eine Acrobat-Erweiterung (Print, SaveAs, GoBack, GoForward, GoToPage); PDF/A akzeptiert die vier Standard-Navigationsnamen (PDF 1.1 §12.6.4.11)
baHide/Hide-Aktion mit /H true; Param ist der Zielfeldname, dessen Widget(s) versteckt werden (PDF 1.2 §12.6.4.10)
baShow/Hide-Aktion mit /H false, die das in Param genannte Widget wieder zeigt; in PDF/A und PDF/X erlaubt (PDF 1.2)
baImportData/ImportData-Aktion; Param ist die in das Formular geladene FDF-Datei; in PDF/A- und PDF/X-Dokumenten verboten (PDF 1.2 §12.7.5.4)

Verwendungshinweise

Verwandte APIs