THPDFPage.AddPushButton

THPDFPage

 

Methods  AcroForm Support

Adds an AcroForm push button widget to the current page.

 

Delphi syntax:

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

 

Description

The method creates a /Btn field with the Pushbutton flag and writes the caption through the widget appearance characteristics. Use AddPushButtonWithAction when the button should submit a form, reset the form, run JavaScript, or open a URI.

 

See also: AcroForm Support, LastAnnotation