public class PdfCollectionField extends PdfObjectWrapper<PdfDictionary>
Modifier and Type | Field and Description |
---|---|
static int |
CREATIONDATE
A possible type of collection field.
|
static int |
DATE
A possible type of collection field.
|
static int |
DESC
A possible type of collection field.
|
static int |
FILENAME
A possible type of collection field.
|
static int |
MODDATE
A possible type of collection field.
|
static int |
NUMBER
A possible type of collection field.
|
static int |
SIZE
A possible type of collection field.
|
protected int |
subType |
static int |
TEXT
A possible type of collection field.
|
Modifier | Constructor and Description |
---|---|
protected |
PdfCollectionField(PdfDictionary pdfObject) |
|
PdfCollectionField(String name, int subType)
Creates a PdfCollectionField.
|
Modifier and Type | Method and Description |
---|---|
PdfBoolean |
getEditable()
Retrieves the state of the editable of the field.
|
PdfNumber |
getOrder()
Retrieves the order of the field name.
|
PdfObject |
getValue(String value)
Converts string to appropriate pdf value.
|
PdfBoolean |
getVisibility()
Retrieves the initial visibility of the field.
|
protected boolean |
isWrappedObjectMustBeIndirect()
Defines if the object behind this wrapper must be an indirect object in the resultant document.
|
PdfCollectionField |
setEditable(boolean editable)
Indication if the field value should be editable in the viewer.
|
PdfCollectionField |
setOrder(int order)
The relative order of the field name.
|
PdfCollectionField |
setVisibility(boolean visible)
Sets the initial visibility of the field.
|
ensureObjectIsAddedToDocument, ensureUnderlyingObjectHasIndirectReference, flush, getPdfObject, isFlushed, makeIndirect, makeIndirect, markObjectAsIndirect, setForbidRelease, setModified, setPdfObject, unsetForbidRelease
public static final int TEXT
public static final int DATE
public static final int NUMBER
public static final int FILENAME
public static final int DESC
public static final int MODDATE
public static final int CREATIONDATE
public static final int SIZE
protected int subType
protected PdfCollectionField(PdfDictionary pdfObject)
public PdfCollectionField(String name, int subType)
name
- the field name
subType
- the field subtype
public PdfCollectionField setOrder(int order)
order
- a number indicating the order of the field
public PdfNumber getOrder()
PDF number
showing the order of the field name
public PdfCollectionField setVisibility(boolean visible)
visible
- is a state of visibility
public PdfBoolean getVisibility()
PDF boolean
value
public PdfCollectionField setEditable(boolean editable)
editable
- is a state of editable
public PdfBoolean getEditable()
pdf boolean
.
public PdfObject getValue(String value)
value
- is a plain string representation of the value
PDF object
protected boolean isWrappedObjectMustBeIndirect()
PdfObjectWrapper
isWrappedObjectMustBeIndirect
in class PdfObjectWrapper<PdfDictionary>
Copyright © 1998–2023 iText Group NV. All rights reserved.