com.lowagie.text.pdf
Class PRAcroForm
java.lang.Object
com.lowagie.text.pdf.PdfObject
com.lowagie.text.pdf.PdfDictionary
com.lowagie.text.pdf.PRAcroForm
- public class PRAcroForm
- extends PdfDictionary
This class captures an AcroForm on input. Basically, it extends Dictionary
by indexing the fields of an AcroForm
- Author:
- Mark Thompson
| Fields inherited from class com.lowagie.text.pdf.PdfObject |
ARRAY, BOOLEAN, DICTIONARY, INDIRECT, NAME, NOTHING, NULL, NUMBER, STREAM, STRING, TEXT_PDFDOCENCODING, TEXT_UNICODE |
| Methods inherited from class com.lowagie.text.pdf.PdfDictionary |
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.lowagie.text.pdf.PdfObject |
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setIndRef, type |
PRAcroForm
public PRAcroForm(PdfReader reader)
- Constructor
- Parameters:
reader - reader of the input file
size
public int size()
- Number of fields found
- Overrides:
size in class PdfDictionary
- Returns:
- size
getFields
public ArrayList getFields()
getField
public PRAcroForm.FieldInformation getField(String name)
getRefByName
public PRIndirectReference getRefByName(String name)
- Given the title (/T) of a reference, return the associated reference
- Parameters:
name - a string containing the path
- Returns:
- a reference to the field, or null
readAcroForm
public void readAcroForm(PdfDictionary root)
- Read, and comprehend the acroform
- Parameters:
root - the document root
Copyright © 2011 EGIZ - E-Government Innovation Center. All Rights Reserved.