Package com.lowagie.text.pdf
Class FdfReader
java.lang.Object
com.lowagie.text.pdf.PdfReader
com.lowagie.text.pdf.FdfReader
- All Implemented Interfaces:
PdfViewerPreferences
Reads an FDF form and makes the fields available
- Author:
- Paulo Soares (psoares@consiste.pt)
-
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, pageRefs, password, pdfVersion, pValue, rebuilt, rValue, sharedStreams, strings, tampered, tokens, trailer, xref -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the field dictionary.Gets all the fields.getFieldValue(String name) Gets the field value ornullif the field does not exist or has no value defined.Gets the PDF file specification contained in the FDF.protected voidkidNode(PdfDictionary merged, String name) protected voidprotected voidreadPdf()Methods inherited from class com.lowagie.text.pdf.PdfReader
addPdfObject, addViewerPreference, ASCII85Decode, ASCIIHexDecode, close, computeUserPassword, consolidateNamedDestinations, createFakeFontSubsets, decodePredictor, dumpPerc, duplicatePdfDictionary, duplicatePdfObject, eliminateSharedStreams, FlateDecode, FlateDecode, getAcroFields, getAcroForm, getBoxSize, getCatalog, getCertificationLevel, getCropBox, getCryptoMode, getEofPos, getFileLength, getInfo, getJavaScript, getJavaScript, getLastXref, getLinks, getMetadata, getNamedDestination, getNamedDestination, getNamedDestinationFromNames, 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, LZWDecode, readArray, readDictionary, readDocObj, readDocObjPartial, readObjStm, readOneObjStm, readPages, readPdfPartial, readPRObject, readSingleObject, readXref, readXrefSection, readXRefStream, rebuildXref, releaseLastXrefPartial, releaseLastXrefPartial, releasePage, removeAnnotations, removeFields, removeUnusedNode, removeUnusedObjects, removeUsageRights, resetLastXrefPartial, resetReleasePage, selectPages, selectPages, setAppendable, setPageContent, setPageContent, setTampered, setViewerPreferences, shuffleSubsetNames
-
Constructor Details
-
FdfReader
Reads an FDF form.- Parameters:
filename- the file name of the form- Throws:
IOException- on error
-
FdfReader
Reads an FDF form.- Parameters:
pdfIn- the byte array with the form- Throws:
IOException- on error
-
FdfReader
Reads an FDF form.- Parameters:
url- the URL of the document- Throws:
IOException- on error
-
FdfReader
Reads an FDF form.- Parameters:
is- theInputStreamcontaining the document. The stream is read to the end but is not closed- Throws:
IOException- on error
-
-
Method Details
-
readPdf
- Overrides:
readPdfin classPdfReader- Throws:
IOException
-
kidNode
-
readFields
protected void readFields() -
getFields
Gets all the fields. The map is keyed by the fully qualified field name and the value is a mergedPdfDictionarywith the field content.- Returns:
- all the fields
-
getField
Gets the field dictionary.- Parameters:
name- the fully qualified field name- Returns:
- the field dictionary
-
getFieldValue
Gets the field value ornullif the field does not exist or has no value defined.- Parameters:
name- the fully qualified field name- Returns:
- the field value or
null
-
getFileSpec
Gets the PDF file specification contained in the FDF.- Returns:
- the PDF file specification contained in the FDF
-