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
Fields
The form fields
public PdfFormFieldsCollection Fields { get; }
Property Value
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
PdfPageThe PDF page in which to place the button
box
RectangleFThe button control bounding box
text
stringThe button text
pdfFont
PdfFontThe 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
PdfPageThe PDF page in which to place the check box control
box
RectangleFThe 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
PdfPageThe PDF page in which to place the combo box control
box
RectangleFThe combo box control bounding box
items
string[]The combo box items
pdfFont
PdfFontThe 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
PdfPageThe PDF page in which to place the list box control
box
RectangleFThe list box control bounding box
items
string[]The list box items
pdfFont
PdfFontThe 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
PdfPageThe 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
PdfPageThe PDF page in which to place the text box control
box
RectangleFThe text box control bounding box
text
stringThe text box initial text
pdfFont
PdfFontThe 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()