iText 9.1.0 API
|
This class represents a single field or field group in an AcroForm. More...
Public Member Functions |
|
override PdfDictionary | GetPdfObject () |
Gets the wrapped dictionary. More... |
|
virtual void | SetParent (PdfFormField parent) |
Sets a parent PdfFormField for the current object. More... |
|
virtual PdfDictionary | GetParent () |
Gets the parent dictionary. More... |
|
virtual PdfFormField | GetParentField () |
Gets the parent field. More... |
|
virtual PdfString | GetFieldName () |
Gets the current field name. More... |
|
abstract PdfString | GetDefaultAppearance () |
Gets default appearance string containing a sequence of valid page-content graphics or text state operators that define such properties as the field's text size and color. More... |
|
virtual float | GetFontSize () |
Gets the current fontSize of the form field. More... |
|
virtual PdfFont | GetFont () |
Gets the current font of the form field. More... |
|
virtual Color | GetColor () |
Gets the current color of the form field. More... |
|
virtual PdfConformance | GetPdfConformance () |
Gets the declared conformance. More... |
|
abstract bool | RegenerateField () |
This method regenerates appearance stream of the field. More... |
|
virtual void | DisableFieldRegeneration () |
This method disables regeneration of the field and its children appearance stream. More... |
|
virtual void | EnableFieldRegeneration () |
This method enables regeneration of the field appearance stream. More... |
|
virtual void | DisableCurrentFieldRegeneration () |
This method disables regeneration of the current field appearance stream. More... |
|
virtual void | EnableCurrentFieldRegeneration () |
This method enables regeneration of the current field appearance stream and regenerates it. More... |
|
virtual bool | IsFieldRegenerationEnabled () |
This method checks if field appearance stream regeneration is enabled. More... |
|
abstract String[] | GetAppearanceStates () |
Gets the appearance state names. More... |
|
virtual iText.Forms.Fields.AbstractPdfFormField | Put (PdfName key, PdfObject value) |
Inserts the value into the iText.Kernel.Pdf.PdfDictionary of this field and associates it with the specified key. More... |
|
virtual iText.Forms.Fields.AbstractPdfFormField | Remove (PdfName key) |
Removes the specified key from the iText.Kernel.Pdf.PdfDictionary of this field. More... |
|
virtual void | Release () |
Releases underlying pdf object and other pdf entities used by wrapper. More... |
|
virtual PdfDocument | GetDocument () |
Gets the iText.Kernel.Pdf.PdfDocument that owns that form field. More... |
|
virtual iText.Forms.Fields.AbstractPdfFormField | SetColor (Color color) |
Sets the text color and regenerates appearance stream. More... |
|
virtual iText.Forms.Fields.AbstractPdfFormField | SetFont (PdfFont font) |
Basic setter for the font property. More... |
|
virtual iText.Forms.Fields.AbstractPdfFormField | SetFontSize (float fontSize) |
Basic setter for the fontSize property. More... |
|
virtual iText.Forms.Fields.AbstractPdfFormField | SetFontSize (int fontSize) |
Basic setter for the fontSize property. More... |
|
virtual iText.Forms.Fields.AbstractPdfFormField | SetFontSizeAutoScale () |
Sets zero font size which will be interpreted as auto-size according to ISO 32000-1, 12.7.3.3. More... |
|
virtual iText.Forms.Fields.AbstractPdfFormField | SetFontAndSize (PdfFont font, float fontSize) |
Combined setter for the font and fontSize properties. More... |
|
virtual bool | IsTerminalFormField () |
Determines whether current form field is terminal or not. More... |
|
override bool | Equals (Object o) |
Indicate whether some other object is "equal to" this one. More... |
|
override int | GetHashCode () |
Generate a hash code for this object. More... |
|
![]() |
|
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 | DEFAULT_FONT_SIZE = 12 |
Size of text in form fields when font size is not explicitly set. More... |
|
const int | MIN_FONT_SIZE = 4 |
Minimal size of text in form fields. More... |
|
Protected Member Functions |
|
override bool | IsWrappedObjectMustBeIndirect () |
Defines if the object behind this wrapper must be an indirect object in the resultant document. More... |
|
Package Functions |
|
AbstractPdfFormField (PdfDictionary pdfObject) | |
Creates a form field as a wrapper object around a iText.Kernel.Pdf.PdfDictionary. More... |
|
![]() |
|
PdfObjectWrapper (T pdfObject) | |
virtual void | SetPdfObject (T pdfObject) |
virtual void | SetForbidRelease () |
virtual void | UnsetForbidRelease () |
virtual void | EnsureUnderlyingObjectHasIndirectReference () |
Package Attributes |
|
PdfFont | font |
float | fontSize = -1 |
Color | color |
PdfConformance | pdfConformance |
PdfFormField | parent |
Parent form field. More... |
|
Additional Inherited Members |
|
![]() |
|
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... |
|
This class represents a single field or field group in an AcroForm.
This class represents a single field or field group in an AcroForm.
To be able to be wrapped with this iText.Kernel.Pdf.PdfObjectWrapper
|
inlinepackage |
Creates a form field as a wrapper object around a iText.Kernel.Pdf.PdfDictionary.
Creates a form field as a wrapper object around a iText.Kernel.Pdf.PdfDictionary. This iText.Kernel.Pdf.PdfDictionary must be an indirect object.
pdfObject | the dictionary to be wrapped, must have an indirect reference. |
|
inlinevirtual |
This method disables regeneration of the current field appearance stream.
|
inlinevirtual |
This method disables regeneration of the field and its children appearance stream.
This method disables regeneration of the field and its children appearance stream. So all of its children in the hierarchy will also not be regenerated.
Note that after this method is called field will be regenerated only during EnableFieldRegeneration() call.
|
inlinevirtual |
This method enables regeneration of the current field appearance stream and regenerates it.
|
inlinevirtual |
This method enables regeneration of the field appearance stream.
This method enables regeneration of the field appearance stream. Please note that this method enables regeneration for the children of the field. Also, appearance will be regenerated during this method call.
Should be called after DisableFieldRegeneration() method call.
|
inline |
Indicate whether some other object is "equal to" this one.
Indicate whether some other object is "equal to" this one. Compares wrapped objects.
|
pure virtual |
Gets the appearance state names.
Implemented in iText.Forms.Fields.PdfFormField, and iText.Forms.Fields.PdfFormAnnotation.
|
inlinevirtual |
Gets the current color of the form field.
|
pure virtual |
Gets default appearance string containing a sequence of valid page-content graphics or text state operators that define such properties as the field's text size and color.
Implemented in iText.Forms.Fields.PdfFormField, and iText.Forms.Fields.PdfFormAnnotation.
|
inlinevirtual |
Gets the iText.Kernel.Pdf.PdfDocument that owns that form field.
|
inlinevirtual |
Gets the current field name.
|
inlinevirtual |
Gets the current font of the form field.
|
inlinevirtual |
Gets the current fontSize of the form field.
|
inline |
Generate a hash code for this object.
|
inlinevirtual |
Gets the parent dictionary.
|
inlinevirtual |
Gets the parent field.
|
inlinevirtual |
Gets the declared conformance.
|
inlinevirtual |
Gets the wrapped dictionary.
Reimplemented from iText.Kernel.Pdf.PdfObjectWrapper< PdfDictionary >.
|
inlinevirtual |
This method checks if field appearance stream regeneration is enabled.
|
inlinevirtual |
Determines whether current form field is terminal or not.
|
inlineprotectedvirtual |
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.
Implements iText.Kernel.Pdf.PdfObjectWrapper< PdfDictionary >.
|
inlinevirtual |
Inserts the value into the iText.Kernel.Pdf.PdfDictionary of this field and associates it with the specified key.
Inserts the value into the iText.Kernel.Pdf.PdfDictionary of this field and associates it with the specified key. If the key is already present in this field dictionary, this method will override the old value with the specified one.
key | key to insert or to override. |
value | the value to associate with the specified key. |
|
pure virtual |
This method regenerates appearance stream of the field.
This method regenerates appearance stream of the field. Use it if you changed any field parameters and didn't use setValue method which generates appearance by itself.
Implemented in iText.Forms.Fields.PdfFormField, and iText.Forms.Fields.PdfFormAnnotation.
|
inlinevirtual |
Releases underlying pdf object and other pdf entities used by wrapper.
Releases underlying pdf object and other pdf entities used by wrapper. This method should be called instead of direct call to iText.Kernel.Pdf.PdfObject.Release() if the wrapper is used.
Reimplemented in iText.Forms.Fields.PdfFormField.
|
inlinevirtual |
Removes the specified key from the iText.Kernel.Pdf.PdfDictionary of this field.
key | key to be removed. |
|
inlinevirtual |
Sets the text color and regenerates appearance stream.
color | the new value for the Color. |
Reimplemented in iText.Forms.Fields.PdfFormField.
|
inlinevirtual |
Basic setter for the font
property.
Basic setter for the font
property. Regenerates the field appearance after setting the new value. Note that the font will be added to the document so ensure that the font is embedded if it's a pdf/a document.
font | The new font to be set. |
|
inlinevirtual |
Combined setter for the font
and fontSize
properties.
Combined setter for the font
and fontSize
properties. Regenerates the field appearance after setting the new value.
font | The new font to be set. |
fontSize | The new font size to be set. |
|
inlinevirtual |
Basic setter for the fontSize
property.
Basic setter for the fontSize
property. Regenerates the field appearance after setting the new value.
fontSize | The new font size to be set. |
|
inlinevirtual |
Basic setter for the fontSize
property.
Basic setter for the fontSize
property. Regenerates the field appearance after setting the new value.
fontSize | The new font size to be set. |
|
inlinevirtual |
Sets zero font size which will be interpreted as auto-size according to ISO 32000-1, 12.7.3.3.
|
inlinevirtual |
Sets a parent PdfFormField for the current object.
parent | another form field that this field belongs to, usually a group field. |
|
static |
Size of text in form fields when font size is not explicitly set.
|
static |
Minimal size of text in form fields.
|
package |
Parent form field.