public class PRAcroForm extends PdfDictionary
Modifier and Type | Class and Description |
---|---|
static class |
PRAcroForm.FieldInformation
This class holds the information for a single field
|
Constructor and Description |
---|
PRAcroForm(PdfReader reader)
Constructor
|
Modifier and Type | Method and Description |
---|---|
PRAcroForm.FieldInformation |
getField(String name) |
ArrayList<PRAcroForm.FieldInformation> |
getFields() |
PRIndirectReference |
getRefByName(String name)
Given the title (/T) of a reference, return the associated reference
|
protected void |
iterateFields(PdfArray fieldlist, PRIndirectReference fieldDict, 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
|
checkType, 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
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, type
public PRAcroForm(PdfReader reader)
reader
- reader of the input file
public int size()
size
in class PdfDictionary
public ArrayList<PRAcroForm.FieldInformation> getFields()
public PRAcroForm.FieldInformation getField(String name)
public PRIndirectReference getRefByName(String name)
name
- a string containing the path
public void readAcroForm(PdfDictionary root)
root
- the document root
protected void iterateFields(PdfArray fieldlist, PRIndirectReference fieldDict, String parentPath)
fieldlist
- An array of fields
fieldDict
- the last field dictionary we encountered (recursively)
parentPath
- the pathname of the field, up to this point or null
protected PdfDictionary mergeAttrib(PdfDictionary parent, PdfDictionary child)
parent
- one dictionary
child
- the other dictionary
protected void pushAttrib(PdfDictionary dict)
Copyright © 1998–2016. All rights reserved.