THPDFPage.AddPushButton

THPDFPage

 

メソッド  AcroForm サポート

現在のページに AcroForm のプッシュボタンウィジェットを追加します。

 

Delphi 構文:

procedure AddPushButton(const Field名前, Caption: AnsiString; Rectangle: TRect; Flags: THPDFFormFieldFlags = []);

 

説明

このメソッドは、Pushbutton フラグを持つ /Btn フィールドを作成し、ウィジェットのアピアランス特性を通じてキャプションを書き込みます。ボタンでフォームの送信、フォームのリセット、JavaScript の実行、URI のオープン、名前付きビューアーコマンドのトリガー、または別のフィールドの非表示を行う必要がある場合は、AddPushButtonWithAction を使用してください。

 

THPDFButtonAction の値

   baNone — no /A action
   baSubmitURL/S /SubmitForm with /FS /URL filespec (PDF 1.2 §12.7.5.2). Param is the destination URL.
   baResetForm/S /ResetForm resets every form field (PDF 1.2 §12.7.5.3).
   baJavaScript/S /JavaScript /JS (Param) (PDF 1.3 §12.6.4.16).
   baURI/S /URI /URI (Param) (PDF 1.1 §12.6.4.7). Opens the URL in a browser.
   ba名前d (HotPDF v2.119.18) — /S /名前d /N <Param> (PDF 1.1 §12.6.4.11). Param is the spec name token: 次へPage / PrevPage / FirstPage / LastPage (the four standard navigation commands all PDF readers honor). Acrobat extensions like Print and SaveAs are also accepted by compatible viewers.
   baHide (HotPDF v2.119.18) — /S /Hide /T (Param) /H true (PDF 1.2 §12.6.4.10). Param is the name of the form field or annotation to hide when the button is clicked.

 

コンプライアンス

PDF/A (任意のレベル) は、ISO 19005-1 §6.6.1 / ISO 19005-2 §6.5.1 / ISO 19005-3 §6.5.1 に従って baJavaScriptbaResetForm を拒否します。PDF/X (任意のレベル) は、さらに baSubmitURL も拒否します。ba名前dbaHide は、PDF/A と PDF/X の両方で仕様上許可されています。

 

See also: AcroForm サポート, LastAnnotation