Class PdfCollectionField
- Namespace
- iText.Kernel.Pdf.Collection
- Assembly
- itext.kernel.dll
public class PdfCollectionField : PdfObjectWrapper<PdfDictionary>
- Inheritance
-
PdfCollectionField
- Inherited Members
Constructors
PdfCollectionField(string, int)
Creates a PdfCollectionField.
public PdfCollectionField(string name, int subType)
Parameters
PdfCollectionField(PdfDictionary)
protected PdfCollectionField(PdfDictionary pdfObject)
Parameters
pdfObject
PdfDictionary
Fields
CREATIONDATE
A possible type of collection field.
public const int CREATIONDATE = 6
Field Value
DATE
A possible type of collection field.
public const int DATE = 1
Field Value
DESC
A possible type of collection field.
public const int DESC = 4
Field Value
FILENAME
A possible type of collection field.
public const int FILENAME = 3
Field Value
MODDATE
A possible type of collection field.
public const int MODDATE = 5
Field Value
NUMBER
A possible type of collection field.
public const int NUMBER = 2
Field Value
SIZE
A possible type of collection field.
public const int SIZE = 7
Field Value
TEXT
A possible type of collection field.
public const int TEXT = 0
Field Value
subType
protected int subType
Field Value
Methods
GetEditable()
Retrieves the state of the editable of the field.
public virtual PdfBoolean GetEditable()
Returns
- PdfBoolean
true if filed is editable and false otherwise. Returned value is presented as pdf boolean.
GetOrder()
Retrieves the order of the field name.
public virtual PdfNumber GetOrder()
Returns
- PdfNumber
the PDF number showing the order of the field name
GetValue(string)
Converts string to appropriate pdf value.
public virtual PdfObject GetValue(string value)
Parameters
value
stringis a plain string representation of the value
Returns
- PdfObject
resulting PDF object
GetVisibility()
Retrieves the initial visibility of the field.
public virtual PdfBoolean GetVisibility()
Returns
- PdfBoolean
the initial visibility of the field as PDF boolean value
IsWrappedObjectMustBeIndirect()
protected override bool IsWrappedObjectMustBeIndirect()
Returns
SetEditable(bool)
Indication if the field value should be editable in the viewer.
public virtual PdfCollectionField SetEditable(bool editable)
Parameters
editable
boolis a state of editable
Returns
- PdfCollectionField
this instance to support fluent interface
SetOrder(int)
The relative order of the field name.
public virtual PdfCollectionField SetOrder(int order)
Parameters
order
inta number indicating the order of the field
Returns
- PdfCollectionField
this instance to support fluent interface
Remarks
The relative order of the field name. Fields are sorted in ascending order.
SetVisibility(bool)
Sets the initial visibility of the field.
public virtual PdfCollectionField SetVisibility(bool visible)
Parameters
visible
boolis a state of visibility
Returns
- PdfCollectionField
this instance to support fluent interface