iText 8.0.5 API
iText.Kernel.Pdf.Collection.PdfCollectionField Class Reference
Inheritance diagram for iText.Kernel.Pdf.Collection.PdfCollectionField:
iText.Kernel.Pdf.PdfObjectWrapper< PdfDictionary >

Public Member Functions

  PdfCollectionField (String name, int subType)
  Creates a PdfCollectionField. More...
 
virtual iText.Kernel.Pdf.Collection.PdfCollectionField  SetOrder (int order)
  The relative order of the field name. More...
 
virtual PdfNumber  GetOrder ()
  Retrieves the order of the field name. More...
 
virtual iText.Kernel.Pdf.Collection.PdfCollectionField  SetVisibility (bool visible)
  Sets the initial visibility of the field. More...
 
virtual PdfBoolean  GetVisibility ()
  Retrieves the initial visibility of the field. More...
 
virtual iText.Kernel.Pdf.Collection.PdfCollectionField  SetEditable (bool editable)
  Indication if the field value should be editable in the viewer. More...
 
virtual PdfBoolean  GetEditable ()
  Retrieves the state of the editable of the field. More...
 
virtual PdfObject  GetValue (String value)
  Converts string to appropriate pdf value. More...
 
- Public Member Functions inherited from iText.Kernel.Pdf.PdfObjectWrapper< PdfDictionary >
virtual T  GetPdfObject ()
 
virtual iText.Kernel.Pdf.PdfObjectWrapper< T >  MakeIndirect (PdfDocument document, PdfIndirectReference reference)
  Marks object behind wrapper to be saved as indirect. More...
 
virtual iText.Kernel.Pdf.PdfObjectWrapper< T >  MakeIndirect (PdfDocument document)
  Marks object behind wrapper to be saved as indirect. More...
 
virtual iText.Kernel.Pdf.PdfObjectWrapper< T >  SetModified ()
 
virtual void  Flush ()
 
virtual bool  IsFlushed ()
 

Static Public Attributes

const int  TEXT = 0
  A possible type of collection field. More...
 
const int  DATE = 1
  A possible type of collection field. More...
 
const int  NUMBER = 2
  A possible type of collection field. More...
 
const int  FILENAME = 3
  A possible type of collection field. More...
 
const int  DESC = 4
  A possible type of collection field. More...
 
const int  MODDATE = 5
  A possible type of collection field. More...
 
const int  CREATIONDATE = 6
  A possible type of collection field. More...
 
const int  SIZE = 7
  A possible type of collection field. More...
 

Package Functions

  PdfCollectionField (PdfDictionary pdfObject)
 
override bool  IsWrappedObjectMustBeIndirect ()
  Defines if the object behind this wrapper must be an indirect object in the resultant document. More...
 
- Package Functions inherited from iText.Kernel.Pdf.PdfObjectWrapper< PdfDictionary >
  PdfObjectWrapper (T pdfObject)
 
virtual void  SetPdfObject (T pdfObject)
 
virtual void  SetForbidRelease ()
 
virtual void  UnsetForbidRelease ()
 
virtual void  EnsureUnderlyingObjectHasIndirectReference ()
 

Package Attributes

int  subType
 

Additional Inherited Members

- Static Package Functions inherited from iText.Kernel.Pdf.PdfObjectWrapper< PdfDictionary >
static void  MarkObjectAsIndirect (PdfObject pdfObject)
 
static void  EnsureObjectIsAddedToDocument (PdfObject @object)
  Some wrappers use object's indirect reference to obtain the PdfDocument to which the object belongs to. More...
 

Constructor & Destructor Documentation

◆ PdfCollectionField()

iText.Kernel.Pdf.Collection.PdfCollectionField.PdfCollectionField ( String  name,
int  subType 
)
inline

Creates a PdfCollectionField.

Parameters
name the field name
subType the field subtype

Member Function Documentation

◆ GetEditable()

virtual PdfBoolean iText.Kernel.Pdf.Collection.PdfCollectionField.GetEditable ( )
inlinevirtual

Retrieves the state of the editable of the field.

Returns
true if filed is editable and false otherwise. Returned value is presented as pdf boolean.

◆ GetOrder()

virtual PdfNumber iText.Kernel.Pdf.Collection.PdfCollectionField.GetOrder ( )
inlinevirtual

Retrieves the order of the field name.

Returns
the PDF number showing the order of the field name

◆ GetValue()

virtual PdfObject iText.Kernel.Pdf.Collection.PdfCollectionField.GetValue ( String  value )
inlinevirtual

Converts string to appropriate pdf value.

Parameters
value is a plain string representation of the value
Returns
resulting PDF object

◆ GetVisibility()

virtual PdfBoolean iText.Kernel.Pdf.Collection.PdfCollectionField.GetVisibility ( )
inlinevirtual

Retrieves the initial visibility of the field.

Returns
the initial visibility of the field as PDF boolean value

◆ IsWrappedObjectMustBeIndirect()

override bool iText.Kernel.Pdf.Collection.PdfCollectionField.IsWrappedObjectMustBeIndirect ( )
inlinepackagevirtual

Defines if the object behind this wrapper must be an indirect object in the resultant document.

Defines if the object behind this wrapper must be an indirect object in the resultant document.

If this method returns true it doesn't necessarily mean that object must be in the indirect state at any moment, but rather defines that when the object will be written to the document it will be transformed into indirect object if it's not indirect yet.

Return value of this method shouldn't depend on any logic, it should return always true or false.

Returns
true if in the resultant document the object behind the wrapper must be indirect, otherwise false.

Implements iText.Kernel.Pdf.PdfObjectWrapper< PdfDictionary >.

◆ SetEditable()

virtual iText.Kernel.Pdf.Collection.PdfCollectionField iText.Kernel.Pdf.Collection.PdfCollectionField.SetEditable ( bool  editable )
inlinevirtual

Indication if the field value should be editable in the viewer.

Parameters
editable is a state of editable
Returns
this instance to support fluent interface

◆ SetOrder()

virtual iText.Kernel.Pdf.Collection.PdfCollectionField iText.Kernel.Pdf.Collection.PdfCollectionField.SetOrder ( int  order )
inlinevirtual

The relative order of the field name.

The relative order of the field name. Fields are sorted in ascending order.

Parameters
order a number indicating the order of the field
Returns
this instance to support fluent interface

◆ SetVisibility()

virtual iText.Kernel.Pdf.Collection.PdfCollectionField iText.Kernel.Pdf.Collection.PdfCollectionField.SetVisibility ( bool  visible )
inlinevirtual

Sets the initial visibility of the field.

Parameters
visible is a state of visibility
Returns
this instance to support fluent interface

Member Data Documentation

◆ CREATIONDATE

const int iText.Kernel.Pdf.Collection.PdfCollectionField.CREATIONDATE = 6
static

A possible type of collection field.

◆ DATE

const int iText.Kernel.Pdf.Collection.PdfCollectionField.DATE = 1
static

A possible type of collection field.

◆ DESC

const int iText.Kernel.Pdf.Collection.PdfCollectionField.DESC = 4
static

A possible type of collection field.

◆ FILENAME

const int iText.Kernel.Pdf.Collection.PdfCollectionField.FILENAME = 3
static

A possible type of collection field.

◆ MODDATE

const int iText.Kernel.Pdf.Collection.PdfCollectionField.MODDATE = 5
static

A possible type of collection field.

◆ NUMBER

const int iText.Kernel.Pdf.Collection.PdfCollectionField.NUMBER = 2
static

A possible type of collection field.

◆ SIZE

const int iText.Kernel.Pdf.Collection.PdfCollectionField.SIZE = 7
static

A possible type of collection field.

◆ TEXT

const int iText.Kernel.Pdf.Collection.PdfCollectionField.TEXT = 0
static

A possible type of collection field.