public static class AcroFields.Item extends Object
Modifier and Type | Field and Description |
---|---|
ArrayList<PdfDictionary> |
merged
Deprecated.
(will remove ' public ' in the future)
|
ArrayList<Integer> |
page
Deprecated.
(will remove ' public ' in the future)
|
ArrayList<Integer> |
tabOrder
Deprecated.
(will remove ' public ' in the future)
|
ArrayList<PdfDictionary> |
values
Deprecated.
(will remove ' public ' in the future)
|
ArrayList<PdfIndirectReference> |
widgetRefs
Deprecated.
(will remove ' public ' in the future)
|
ArrayList<PdfDictionary> |
widgets
Deprecated.
(will remove ' public ' in the future)
|
static int |
WRITE_MERGED
writeToAll constant. |
static int |
WRITE_VALUE
writeToAll and markUsed constant. |
static int |
WRITE_WIDGET
writeToAll and markUsed constant. |
Constructor and Description |
---|
Item() |
Modifier and Type | Method and Description |
---|---|
PdfDictionary |
getMerged(int idx)
Retrieve the merged dictionary for the given instance.
|
Integer |
getPage(int idx)
Retrieve the page number of the given instance
|
Integer |
getTabOrder(int idx)
Gets the tabOrder.
|
PdfDictionary |
getValue(int idx)
Retrieve the value dictionary of the given instance
|
PdfDictionary |
getWidget(int idx)
Retrieve the widget dictionary of the given instance
|
PdfIndirectReference |
getWidgetRef(int idx)
Retrieve the reference to the given instance
|
void |
markUsed(AcroFields parentFields,
int writeFlags)
Mark all the item dictionaries used matching the given flags
|
int |
size()
Preferred method of determining the number of instances of a given field.
|
void |
writeToAll(PdfName key,
PdfObject value,
int writeFlags)
This function writes the given key/value pair to all the instances of merged, widget, and/or value, depending on the
writeFlags setting |
public static final int WRITE_MERGED
writeToAll
constant.public static final int WRITE_WIDGET
writeToAll
and markUsed
constant.public static final int WRITE_VALUE
writeToAll
and markUsed
constant.public ArrayList<PdfDictionary> values
PdfDictionary
where the value tag /V is present.public ArrayList<PdfDictionary> widgets
PdfDictionary
with the widgets.public ArrayList<PdfIndirectReference> widgetRefs
PdfDictionary
with the widget references.public ArrayList<PdfDictionary> merged
PdfDictionary
with all the field and widget tags merged.public ArrayList<Integer> page
Integer
with the page numbers where the widgets are displayed.public void writeToAll(PdfName key, PdfObject value, int writeFlags)
writeFlags
settingkey
- you'll never guess what this is for.value
- if value is null, the key will be removedwriteFlags
- ORed together WRITE_* flagspublic void markUsed(AcroFields parentFields, int writeFlags)
writeFlags
- WRITE_MERGED is ignoredparentFields
- parent fieldspublic int size()
public PdfDictionary getValue(int idx)
idx
- instance indexpublic PdfDictionary getWidget(int idx)
idx
- instance indexpublic PdfIndirectReference getWidgetRef(int idx)
idx
- instance indexpublic PdfDictionary getMerged(int idx)
idx
- instance indexpublic Integer getPage(int idx)
idx
- indexpublic Integer getTabOrder(int idx)
idx
- indexCopyright © 2020. All rights reserved.