AddPushButton(String, PdfPage, PdfRectangle, PdfFieldOptions?) Method

Definition

Namespace Broadside.Forms
Assembly Broadside.dll

Creates a push button with one widget on page, showing Caption.

public PdfPushButtonField AddPushButton(string name, PdfPage page, PdfRectangle rectangle, PdfFieldOptions? options = null)

Parameters

name
String

The field's fully qualified name, as for AddTextField(String, PdfPage, PdfRectangle, PdfFieldOptions?).

page
PdfPage

The page the widget is on, a page of this form's document.

rectangle
PdfRectangle

The widget's rectangle, in default user space.

options
PdfFieldOptions

The caption, its size and colour, and the widget colours; null for the defaults.

Returns

PdfPushButtonField
The new field; give its widget an action through its dictionary's A entry.

Remarks

ISO 32000-2 §12.7.5.2.2. A button field with the Pushbutton flag, merged with its widget, whose appearance shows the caption (MK CA) centred in the form's Helvetica. Otherwise as AddTextField(String, PdfPage, PdfRectangle, PdfFieldOptions?) describes.