Table of Contents

Class PdfForm

Namespace
EvoPdf
Assembly
evohtmltopdf.dll

This class represents the PDF form of a PDF document

[ClassInterface(ClassInterfaceType.AutoDual)]
public class PdfForm
Inheritance
PdfForm
Inherited Members

Properties

Document

The form owner document

public Document Document { get; }

Property Value

Document

Fields

The form fields

public PdfFormFieldsCollection Fields { get; }

Property Value

PdfFormFieldsCollection

Methods

AddButton(PdfPage, RectangleF, string, PdfFont)

Creates a button in PDF form

public PdfFormButton AddButton(PdfPage pdfPage, RectangleF box, string text, PdfFont pdfFont)

Parameters

pdfPage PdfPage

The PDF page in which to place the button

box RectangleF

The button control bounding box

text string

The button text

pdfFont PdfFont

The button text font

Returns

PdfFormButton

The created button field

AddCheckBox(PdfPage, RectangleF)

Creates a check box form field in PDF form of the PDF document

public PdfFormCheckBox AddCheckBox(PdfPage pdfPage, RectangleF box)

Parameters

pdfPage PdfPage

The PDF page in which to place the check box control

box RectangleF

The check box control bounding box

Returns

PdfFormCheckBox

The created check box field

AddComboBox(PdfPage, RectangleF, string[], PdfFont)

Creates a combo box field in PDF form

public PdfFormComboBox AddComboBox(PdfPage pdfPage, RectangleF box, string[] items, PdfFont pdfFont)

Parameters

pdfPage PdfPage

The PDF page in which to place the combo box control

box RectangleF

The combo box control bounding box

items string[]

The combo box items

pdfFont PdfFont

The combo box items font

Returns

PdfFormComboBox

The created combo box field

AddListBox(PdfPage, RectangleF, string[], PdfFont)

Creates a list box field in PDF form

public PdfFormListBox AddListBox(PdfPage pdfPage, RectangleF box, string[] items, PdfFont pdfFont)

Parameters

pdfPage PdfPage

The PDF page in which to place the list box control

box RectangleF

The list box control bounding box

items string[]

The list box items

pdfFont PdfFont

The list box items font

Returns

PdfFormListBox

The created list box field

AddRadioButtonsGroup(PdfPage)

Creates a group of radio buttons in PDF form

public PdfFormRadioButtonsGroup AddRadioButtonsGroup(PdfPage pdfPage)

Parameters

pdfPage PdfPage

The PDF page in which to place the group of radio buttons

Returns

PdfFormRadioButtonsGroup

The created radio buttons group

AddTextBox(PdfPage, RectangleF, string, PdfFont)

Creates a text box form field in PDF form of the PDF document

public PdfFormTextBox AddTextBox(PdfPage pdfPage, RectangleF box, string text, PdfFont pdfFont)

Parameters

pdfPage PdfPage

The PDF page in which to place the text box control

box RectangleF

The text box control bounding box

text string

The text box initial text

pdfFont PdfFont

The text font

Returns

PdfFormTextBox

The created text box field

CreateFieldStyle()

Creates a form field style

public PdfFormFieldStyle CreateFieldStyle()

Returns

PdfFormFieldStyle

The form field style

FlattenFields()

Flattens the fields in the PDF form

public void FlattenFields()