java.io.Serializablepublic class PRAcroForm extends PdfDictionary
| Modifier and Type | Class | Description |
|---|---|---|
static class |
PRAcroForm.FieldInformation |
This class holds the information for a single field
|
| Constructor | Description |
|---|---|
PRAcroForm(PdfReader reader) |
Constructor
|
| Modifier and Type | Method | Description |
|---|---|---|
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 parentPath) |
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
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcheckType, 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, toStringcanBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, typepublic PRAcroForm(PdfReader reader)
reader - reader of the input filepublic 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 pathpublic void readAcroForm(PdfDictionary root)
root - the document rootprotected void iterateFields(PdfArray fieldlist, PRIndirectReference fieldDict, java.lang.String parentPath)
fieldlist - An array of fieldsfieldDict - the last field dictionary we encountered (recursively)parentPath - the pathname of the field, up to this point or nullprotected PdfDictionary mergeAttrib(PdfDictionary parent, PdfDictionary child)
parent - one dictionarychild - the other dictionaryprotected void pushAttrib(PdfDictionary dict)
Copyright © 1998–2018. All rights reserved.