Class PdfFormField
- Namespace
- iTextSharp.text.pdf
- Assembly
- iTextSharp.LGPLv2.Core.dll
Implements form fields. @author Paulo Soares (psoares@consiste.pt)
public class PdfFormField : PdfAnnotation
- Inheritance
-
PdfFormField
- Inherited Members
Constructors
PdfFormField(PdfWriter, float, float, float, float, PdfAction)
Constructs a new PdfAnnotation of subtype link (Action).
public PdfFormField(PdfWriter writer, float llx, float lly, float urx, float ury, PdfAction action)
Parameters
Fields
FF_COMB
public const int FF_COMB = 16777216
Field Value
FF_COMBO
public const int FF_COMBO = 131072
Field Value
FF_DONOTSCROLL
public const int FF_DONOTSCROLL = 8388608
Field Value
FF_DONOTSPELLCHECK
public const int FF_DONOTSPELLCHECK = 4194304
Field Value
FF_EDIT
public const int FF_EDIT = 262144
Field Value
FF_FILESELECT
public const int FF_FILESELECT = 1048576
Field Value
FF_MULTILINE
public const int FF_MULTILINE = 4096
Field Value
FF_MULTISELECT
public const int FF_MULTISELECT = 2097152
Field Value
FF_NO_EXPORT
public const int FF_NO_EXPORT = 4
Field Value
FF_NO_TOGGLE_TO_OFF
public const int FF_NO_TOGGLE_TO_OFF = 16384
Field Value
FF_PASSWORD
public const int FF_PASSWORD = 8192
Field Value
FF_PUSHBUTTON
public const int FF_PUSHBUTTON = 65536
Field Value
FF_RADIO
public const int FF_RADIO = 32768
Field Value
FF_RADIOSINUNISON
public const int FF_RADIOSINUNISON = 33554432
Field Value
FF_READ_ONLY
public const int FF_READ_ONLY = 1
Field Value
FF_REQUIRED
public const int FF_REQUIRED = 2
Field Value
IfScaleAlways
public static readonly PdfName IfScaleAlways
Field Value
IfScaleAnamorphic
public static readonly PdfName IfScaleAnamorphic
Field Value
IfScaleBigger
public static readonly PdfName IfScaleBigger
Field Value
IfScaleNever
public static readonly PdfName IfScaleNever
Field Value
IfScaleProportional
public static readonly PdfName IfScaleProportional
Field Value
IfScaleSmaller
public static readonly PdfName IfScaleSmaller
Field Value
MK_CAPTION_ABOVE
public const int MK_CAPTION_ABOVE = 3
Field Value
MK_CAPTION_BELOW
public const int MK_CAPTION_BELOW = 2
Field Value
MK_CAPTION_LEFT
public const int MK_CAPTION_LEFT = 5
Field Value
MK_CAPTION_OVERLAID
public const int MK_CAPTION_OVERLAID = 6
Field Value
MK_CAPTION_RIGHT
public const int MK_CAPTION_RIGHT = 4
Field Value
MK_NO_CAPTION
public const int MK_NO_CAPTION = 1
Field Value
MK_NO_ICON
public const int MK_NO_ICON = 0
Field Value
MULTILINE
public const bool MULTILINE = true
Field Value
MergeTarget
public static PdfName[] MergeTarget
Field Value
- PdfName[]
PASSWORD
public const bool PASSWORD = true
Field Value
PLAINTEXT
public const bool PLAINTEXT = false
Field Value
Q_CENTER
public const int Q_CENTER = 1
Field Value
Q_LEFT
public const int Q_LEFT = 0
Field Value
Q_RIGHT
public const int Q_RIGHT = 2
Field Value
SINGLELINE
public const bool SINGLELINE = false
Field Value
Properties
Button
public int Button { set; }
Property Value
DefaultValueAsName
public string DefaultValueAsName { set; }
Property Value
DefaultValueAsString
public string DefaultValueAsString { set; }
Property Value
FieldName
public string FieldName { set; }
Property Value
Kids
public IList<PdfFormField> Kids { get; }
Property Value
MappingName
public string MappingName { set; }
Property Value
Parent
Getter for property parent.
public PdfFormField Parent { get; }
Property Value
- PdfFormField
Value of property parent.
Quadding
public int Quadding { set; }
Property Value
UserName
public string UserName { set; }
Property Value
ValueAsName
public string ValueAsName { set; }
Property Value
ValueAsSig
public PdfSignature ValueAsSig { set; }
Property Value
ValueAsString
public string ValueAsString { set; }
Property Value
Methods
AddKid(PdfFormField)
public void AddKid(PdfFormField field)
Parameters
field
PdfFormField
CreateButton(PdfWriter, int)
protected static PdfFormField CreateButton(PdfWriter writer, int flags)
Parameters
Returns
CreateCheckBox(PdfWriter)
public static PdfFormField CreateCheckBox(PdfWriter writer)
Parameters
writer
PdfWriter
Returns
CreateChoice(PdfWriter, int, PdfArray, int)
protected static PdfFormField CreateChoice(PdfWriter writer, int flags, PdfArray options, int topIndex)
Parameters
Returns
CreateCombo(PdfWriter, bool, string[,], int)
public static PdfFormField CreateCombo(PdfWriter writer, bool edit, string[,] options, int topIndex)
Parameters
Returns
CreateCombo(PdfWriter, bool, string[], int)
public static PdfFormField CreateCombo(PdfWriter writer, bool edit, string[] options, int topIndex)
Parameters
Returns
CreateEmpty(PdfWriter)
public static PdfFormField CreateEmpty(PdfWriter writer)
Parameters
writer
PdfWriter
Returns
CreateList(PdfWriter, string[,], int)
public static PdfFormField CreateList(PdfWriter writer, string[,] options, int topIndex)
Parameters
Returns
CreateList(PdfWriter, string[], int)
public static PdfFormField CreateList(PdfWriter writer, string[] options, int topIndex)
Parameters
Returns
CreatePushButton(PdfWriter)
public static PdfFormField CreatePushButton(PdfWriter writer)
Parameters
writer
PdfWriter
Returns
CreateRadioButton(PdfWriter, bool)
public static PdfFormField CreateRadioButton(PdfWriter writer, bool noToggleToOff)
Parameters
Returns
CreateSignature(PdfWriter)
public static PdfFormField CreateSignature(PdfWriter writer)
Parameters
writer
PdfWriter
Returns
CreateTextField(PdfWriter, bool, bool, int)
public static PdfFormField CreateTextField(PdfWriter writer, bool multiline, bool password, int maxLen)
Parameters
Returns
ProcessOptions(string[,])
protected static PdfArray ProcessOptions(string[,] options)
Parameters
options
string[,]
Returns
ProcessOptions(string[])
protected static PdfArray ProcessOptions(string[] options)
Parameters
options
string[]
Returns
SetFieldFlags(int)
public int SetFieldFlags(int flags)
Parameters
flags
int
Returns
SetUsed()
public override void SetUsed()
SetWidget(Rectangle, PdfName)
public void SetWidget(Rectangle rect, PdfName highlight)