|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.itextpdf.text.pdf.PdfObject
com.itextpdf.text.pdf.PdfDictionary
com.itextpdf.text.pdf.PRAcroForm
public class PRAcroForm
This class captures an AcroForm on input. Basically, it extends Dictionary by indexing the fields of an AcroForm
| Nested Class Summary | |
|---|---|
static class |
PRAcroForm.FieldInformation
This class holds the information for a single field |
| Field Summary |
|---|
| Fields inherited from class com.itextpdf.text.pdf.PdfDictionary |
|---|
CATALOG, FONT, hashMap, OUTLINES, PAGE, PAGES |
| Fields inherited from class com.itextpdf.text.pdf.PdfObject |
|---|
ARRAY, BOOLEAN, bytes, DICTIONARY, INDIRECT, indRef, NAME, NOTHING, NULL, NUMBER, STREAM, STRING, TEXT_PDFDOCENCODING, TEXT_UNICODE, type |
| Constructor Summary | |
|---|---|
PRAcroForm(PdfReader reader)
Constructor |
|
| Method Summary | |
|---|---|
PRAcroForm.FieldInformation |
getField(java.lang.String name)
|
java.util.ArrayList<PRAcroForm.FieldInformation> |
getFields()
|
PRIndirectReference |
getRefByName(java.lang.String name)
Given the title (/T) of a reference, return the associated reference |
protected void |
iterateFields(PdfArray fieldlist,
PRIndirectReference fieldDict,
java.lang.String title)
After reading, we index all of the fields. |
protected PdfDictionary |
mergeAttrib(PdfDictionary parent,
PdfDictionary child)
merge field attributes from two dictionaries |
protected void |
pushAttrib(PdfDictionary dict)
stack a level of dictionary. |
void |
readAcroForm(PdfDictionary root)
Read, and comprehend the acroform |
int |
size()
Number of fields found |
| Methods inherited from class com.itextpdf.text.pdf.PdfDictionary |
|---|
clear, contains, get, getAsArray, getAsBoolean, getAsDict, getAsIndirectObject, getAsName, getAsNumber, getAsStream, getAsString, getDirectObject, getKeys, isCatalog, isFont, isOutlineTree, isPage, isPages, merge, mergeDifferent, put, putAll, putEx, remove, toPdf, toString |
| Methods inherited from class com.itextpdf.text.pdf.PdfObject |
|---|
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, type |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PRAcroForm(PdfReader reader)
reader - reader of the input file| Method Detail |
|---|
public int size()
size in class PdfDictionarypublic java.util.ArrayList<PRAcroForm.FieldInformation> getFields()
public PRAcroForm.FieldInformation getField(java.lang.String name)
public PRIndirectReference getRefByName(java.lang.String name)
name - a string containing the path
public void readAcroForm(PdfDictionary root)
root - the document root
protected void iterateFields(PdfArray fieldlist,
PRIndirectReference fieldDict,
java.lang.String title)
fieldlist - An array of fieldsfieldDict - the last field dictionary we encountered (recursively)title - the pathname of the field, up to this point or null
protected PdfDictionary mergeAttrib(PdfDictionary parent,
PdfDictionary child)
parent - one dictionarychild - the other dictionary
protected void pushAttrib(PdfDictionary dict)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||