Class PdfAcroForm
- Namespace
- iTextSharp.text.pdf
- Assembly
- iTextSharp.LGPLv2.Core.dll
Each PDF document can contain maximum 1 AcroForm.
public class PdfAcroForm : PdfDictionary
- Inheritance
-
PdfAcroForm
- Inherited Members
Constructors
PdfAcroForm(PdfWriter)
Creates new PdfAcroForm
public PdfAcroForm(PdfWriter writer)
Parameters
writer
PdfWriter
Properties
NeedAppearances
public bool NeedAppearances { set; }
Property Value
SigFlags
Adds fieldTemplates.
public int SigFlags { set; }
Property Value
Methods
AddCalculationOrder(PdfFormField)
public void AddCalculationOrder(PdfFormField formField)
Parameters
formField
PdfFormField
AddCheckBox(string, string, bool, float, float, float, float)
public PdfFormField AddCheckBox(string name, string value, bool status, float llx, float lly, float urx, float ury)
Parameters
Returns
AddComboBox(string, string[,], string, bool, BaseFont, float, float, float, float, float)
public PdfFormField AddComboBox(string name, string[,] options, string defaultValue, bool editable, BaseFont font, float fontSize, float llx, float lly, float urx, float ury)
Parameters
name
stringoptions
string[,]defaultValue
stringeditable
boolfont
BaseFontfontSize
floatllx
floatlly
floaturx
floatury
float
Returns
AddComboBox(string, string[], string, bool, BaseFont, float, float, float, float, float)
public PdfFormField AddComboBox(string name, string[] options, string defaultValue, bool editable, BaseFont font, float fontSize, float llx, float lly, float urx, float ury)
Parameters
name
stringoptions
string[]defaultValue
stringeditable
boolfont
BaseFontfontSize
floatllx
floatlly
floaturx
floatury
float
Returns
AddDocumentField(PdfIndirectReference)
public void AddDocumentField(PdfIndirectReference piref)
Parameters
piref
PdfIndirectReference
AddFieldTemplates(INullValueDictionary<PdfTemplate, object>)
public void AddFieldTemplates(INullValueDictionary<PdfTemplate, object> ft)
Parameters
AddFormField(PdfFormField)
Adds documentFields.
public void AddFormField(PdfFormField formField)
Parameters
formField
PdfFormField
AddHiddenField(string, string)
public PdfFormField AddHiddenField(string name, string value)
Parameters
Returns
AddHtmlPostButton(string, string, string, string, BaseFont, float, float, float, float, float)
Adds an object to the calculationOrder.
public PdfFormField AddHtmlPostButton(string name, string caption, string value, string url, BaseFont font, float fontSize, float llx, float lly, float urx, float ury)
Parameters
name
stringcaption
stringvalue
stringurl
stringfont
BaseFontfontSize
floatllx
floatlly
floaturx
floatury
float
Returns
AddMap(string, string, string, PdfContentByte, float, float, float, float)
public PdfFormField AddMap(string name, string value, string url, PdfContentByte appearance, float llx, float lly, float urx, float ury)
Parameters
name
stringvalue
stringurl
stringappearance
PdfContentBytellx
floatlly
floaturx
floatury
float
Returns
AddMultiLineTextField(string, string, BaseFont, float, float, float, float, float)
public PdfFormField AddMultiLineTextField(string name, string text, BaseFont font, float fontSize, float llx, float lly, float urx, float ury)
Parameters
Returns
AddRadioButton(PdfFormField, string, float, float, float, float)
public PdfFormField AddRadioButton(PdfFormField radiogroup, string value, float llx, float lly, float urx, float ury)
Parameters
Returns
AddRadioGroup(PdfFormField)
public void AddRadioGroup(PdfFormField radiogroup)
Parameters
radiogroup
PdfFormField
AddResetButton(string, string, string, BaseFont, float, float, float, float, float)
public PdfFormField AddResetButton(string name, string caption, string value, BaseFont font, float fontSize, float llx, float lly, float urx, float ury)
Parameters
name
stringcaption
stringvalue
stringfont
BaseFontfontSize
floatllx
floatlly
floaturx
floatury
float
Returns
AddSelectList(string, string[,], string, BaseFont, float, float, float, float, float)
public PdfFormField AddSelectList(string name, string[,] options, string defaultValue, BaseFont font, float fontSize, float llx, float lly, float urx, float ury)
Parameters
name
stringoptions
string[,]defaultValue
stringfont
BaseFontfontSize
floatllx
floatlly
floaturx
floatury
float
Returns
AddSelectList(string, string[], string, BaseFont, float, float, float, float, float)
public PdfFormField AddSelectList(string name, string[] options, string defaultValue, BaseFont font, float fontSize, float llx, float lly, float urx, float ury)
Parameters
name
stringoptions
string[]defaultValue
stringfont
BaseFontfontSize
floatllx
floatlly
floaturx
floatury
float
Returns
AddSignature(string, float, float, float, float)
public PdfFormField AddSignature(string name, float llx, float lly, float urx, float ury)
Parameters
Returns
AddSingleLinePasswordField(string, string, BaseFont, float, float, float, float, float)
public PdfFormField AddSingleLinePasswordField(string name, string text, BaseFont font, float fontSize, float llx, float lly, float urx, float ury)
Parameters
Returns
AddSingleLineTextField(string, string, BaseFont, float, float, float, float, float)
public PdfFormField AddSingleLineTextField(string name, string text, BaseFont font, float fontSize, float llx, float lly, float urx, float ury)
Parameters
Returns
DrawButton(PdfFormField, string, BaseFont, float, float, float, float, float)
public void DrawButton(PdfFormField button, string caption, BaseFont font, float fontSize, float llx, float lly, float urx, float ury)
Parameters
button
PdfFormFieldcaption
stringfont
BaseFontfontSize
floatllx
floatlly
floaturx
floatury
float
DrawCheckBoxAppearences(PdfFormField, string, float, float, float, float)
public void DrawCheckBoxAppearences(PdfFormField field, string value, float llx, float lly, float urx, float ury)
Parameters
DrawMultiLineOfText(PdfFormField, string, BaseFont, float, float, float, float, float)
public void DrawMultiLineOfText(PdfFormField field, string text, BaseFont font, float fontSize, float llx, float lly, float urx, float ury)
Parameters
DrawRadioAppearences(PdfFormField, string, float, float, float, float)
public void DrawRadioAppearences(PdfFormField field, string value, float llx, float lly, float urx, float ury)
Parameters
DrawSignatureAppearences(PdfFormField, float, float, float, float)
public void DrawSignatureAppearences(PdfFormField field, float llx, float lly, float urx, float ury)
Parameters
field
PdfFormFieldllx
floatlly
floaturx
floatury
float
DrawSingleLineOfText(PdfFormField, string, BaseFont, float, float, float, float, float)
public void DrawSingleLineOfText(PdfFormField field, string text, BaseFont font, float fontSize, float llx, float lly, float urx, float ury)
Parameters
GetRadioGroup(string, string, bool)
public PdfFormField GetRadioGroup(string name, string defaultValue, bool noToggleToOff)
Parameters
Returns
IsValid()
public bool IsValid()
Returns
SetButtonParams(PdfFormField, int, string, string)
public static void SetButtonParams(PdfFormField button, int characteristics, string name, string value)
Parameters
button
PdfFormFieldcharacteristics
intname
stringvalue
string
SetCheckBoxParams(PdfFormField, string, string, bool, float, float, float, float)
public static void SetCheckBoxParams(PdfFormField field, string name, string value, bool status, float llx, float lly, float urx, float ury)
Parameters
SetChoiceParams(PdfFormField, string, string, float, float, float, float)
public static void SetChoiceParams(PdfFormField field, string name, string defaultValue, float llx, float lly, float urx, float ury)
Parameters
SetSignatureParams(PdfFormField, string, float, float, float, float)
public static void SetSignatureParams(PdfFormField field, string name, float llx, float lly, float urx, float ury)
Parameters
SetTextFieldParams(PdfFormField, string, string, float, float, float, float)
public static void SetTextFieldParams(PdfFormField field, string text, string name, float llx, float lly, float urx, float ury)