com.lowagie.text.pdf

Class FdfReader

Implemented Interfaces:
PdfViewerPreferences

public class FdfReader
extends PdfReader

Reads an FDF form and makes the fields available

Field Summary

Fields inherited from class com.lowagie.text.pdf.PdfReader

acroForm, acroFormParsed, catalog, certificate, certificateKey, certificateKeyProvider, consolidateNamedDestinations, decrypt, encrypted, eofPos, freeXref, lastXref, newXrefType, objStmMark, objStmToOffset, pValue, pageRefs, password, pdfVersion, rValue, rebuilt, sharedStreams, strings, tampered, tokens, trailer, xref

Constructor Summary

FdfReader(InputStream is)
Reads an FDF form.
FdfReader(String filename)
Reads an FDF form.
FdfReader(URL url)
Reads an FDF form.
FdfReader(pdfIn[] )
Reads an FDF form.

Method Summary

PdfDictionary
getField(String name)
Gets the field dictionary.
String
getFieldValue(String name)
Gets the field value or null if the field does not exist or has no value defined.
HashMap<K,V>
getFields()
Gets all the fields.
String
getFileSpec()
Gets the PDF file specification contained in the FDF.
protected void
kidNode(PdfDictionary merged, String name)
protected void
readFields()
protected void
readPdf()

Methods inherited from class com.lowagie.text.pdf.PdfReader

ASCII85Decode, ASCIIHexDecode, FlateDecode, FlateDecode, LZWDecode, addPdfObject, addViewerPreference, close, computeUserPassword, consolidateNamedDestinations, createFakeFontSubsets, decodePredictor, dumpPerc, duplicatePdfDictionary, duplicatePdfObject, eliminateSharedStreams, getAcroFields, getAcroForm, getBoxSize, getCatalog, getCertificationLevel, getCropBox, getCryptoMode, getEofPos, getFileLength, getInfo, getJavaScript, getJavaScript, getLastXref, getLinks, getMetadata, getNamedDestination, getNamedDestinationFromNames, getNamedDestinationFromStrings, getNormalizedRectangle, getNumberOfPages, getPageContent, getPageContent, getPageN, getPageNRelease, getPageOrigRef, getPageRotation, getPageSize, getPageSize, getPageSizeWithRotation, getPageSizeWithRotation, getPdfObject, getPdfObject, getPdfObject, getPdfObjectRelease, getPdfObjectRelease, getPdfObjectRelease, getPdfReaderInstance, getPdfVersion, getPermissions, getSafeFile, getSimpleViewerPreferences, getStreamBytes, getStreamBytes, getStreamBytesRaw, getStreamBytesRaw, getTrailer, getXrefSize, is128Key, isAppendable, isEncrypted, isHybridXref, isMetadataEncrypted, isNewXrefType, isOpenedWithFullPermissions, isRebuilt, isTampered, killIndirect, killXref, readArray, readDictionary, readDocObj, readDocObjPartial, readObjStm, readOneObjStm, readPRObject, readPages, readPdf, readPdfPartial, readSingleObject, readXRefStream, readXref, readXrefSection, rebuildXref, releaseLastXrefPartial, releaseLastXrefPartial, releasePage, removeAnnotations, removeFields, removeUnusedNode, removeUnusedObjects, removeUsageRights, resetLastXrefPartial, resetReleasePage, selectPages, selectPages, setAppendable, setPageContent, setTampered, setViewerPreferences, shuffleSubsetNames

Methods inherited from class java.lang.Object

clone, equals, extends Object> getClass, finalize, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Details

FdfReader

public FdfReader(InputStream is)
            throws IOException
Reads an FDF form.
Parameters:
is - the InputStream containing the document. The stream is read to the end but is not closed
Throws:
IOException - on error

FdfReader

public FdfReader(String filename)
            throws IOException
Reads an FDF form.
Parameters:
filename - the file name of the form
Throws:
IOException - on error

FdfReader

public FdfReader(URL url)
            throws IOException
Reads an FDF form.
Parameters:
url - the URL of the document
Throws:
IOException - on error

FdfReader

public FdfReader(pdfIn[] )
            throws IOException
Reads an FDF form.
Parameters:
Throws:
IOException - on error

Method Details

getField

public PdfDictionary getField(String name)
Gets the field dictionary.
Parameters:
name - the fully qualified field name
Returns:
the field dictionary

getFieldValue

public String getFieldValue(String name)
Gets the field value or null if the field does not exist or has no value defined.
Parameters:
name - the fully qualified field name
Returns:
the field value or null

getFields

public HashMap<K,V> getFields()
Gets all the fields. The map is keyed by the fully qualified field name and the value is a merged PdfDictionary with the field content.
Returns:
all the fields

getFileSpec

public String getFileSpec()
Gets the PDF file specification contained in the FDF.
Returns:
the PDF file specification contained in the FDF

kidNode

protected void kidNode(PdfDictionary merged,
                       String name)

readFields

protected void readFields()

readPdf

protected void readPdf()
            throws IOException
Overrides:
readPdf in interface PdfReader