|
Adds an AcroForm push button widget to the current page.
Delphi 구문:
procedure AddPushButton(const FieldName, Caption: AnsiString; Rectangle: TRect; Flags: THPDFFormFieldFlags = []);
설명
이 method는 Pushbutton flag가 있는 /Btn field를 만들고 widget appearance characteristic을 통해 caption을 씁니다. Button이 form submit, form reset, JavaScript 실행, URI 열기, named viewer command trigger, 다른 field hide를 수행해야 할 때는 AddPushButtonWithAction을 사용하십시오
THPDFButtonAction values
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.
baNamed (HotPDF v2.119.18) — /S /Named /N <Param> (PDF 1.1 §12.6.4.11). Param is the spec name token: NextPage / 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.
Compliance
PDF/A(any level)는 ISO 19005-1 §6.6.1 / ISO 19005-2 §6.5.1 / ISO 19005-3 §6.5.1에 따라 baJavaScript와 baResetForm을 거부합니다. PDF/X(any level)는 추가로 baSubmitURL을 거부합니다. baNamed와 baHide는 PDF/A 및 PDF/X 모두에서 spec-allowed입니다
참조: AcroForm Support, LastAnnotation
|