Package com.aowagie.text.pdf
Class FdfReader
- java.lang.Object
-
- com.aowagie.text.pdf.PdfReader
-
- com.aowagie.text.pdf.FdfReader
-
- All Implemented Interfaces:
PdfViewerPreferences
class FdfReader extends PdfReader
Reads an FDF form and makes the fields available
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.aowagie.text.pdf.PdfReader
PdfReader.PageRefs
-
-
Constructor Summary
Constructors Constructor Description FdfReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.HashMap
getFields()
Gets all the fields.(package private) java.lang.String
getFieldValue(java.lang.String name)
Gets the field value ornull
if the field does not exist or has no value defined.java.lang.String
getFileSpec()
Gets the PDF file specification contained in the FDF.private void
kidNode(PdfDictionary merged, java.lang.String name)
private void
readFields()
protected void
readPdf()
-
Methods inherited from class com.aowagie.text.pdf.PdfReader
addPdfObject, addViewerPreference, close, consolidateNamedDestinations, FlateDecode, getAcroFields, getAcroForm, getBoxSize, getCatalog, getCertificationLevel, getCryptoMode, getCryptoRef, getDecrypt, getEofPos, getFileLength, getInfo, getJavaScript, getLastXref, getMetadata, getNamedDestination, getNamedDestinationFromNames, getNamedDestinationFromStrings, getNormalizedRectangle, getNumberOfPages, getPageContent, getPageN, getPageNRelease, getPageOrigRef, getPageRotation, getPageRotation, getPageSize, getPageSizeWithRotation, getPageSizeWithRotation, getPdfObject, getPdfObject, getPdfObject, getPdfObjectRelease, getPdfObjectRelease, getPdfObjectRelease, getPdfReaderInstance, getPdfVersion, getPermissions, getSafeFile, getSimpleViewerPreferences, getStreamBytes, getStreamBytesRaw, getTrailer, getXrefSize, isAppendable, isEncrypted, isHybridXref, isMetadataEncrypted, isNewXrefType, isOpenedWithFullPermissions, isRebuilt, isTampered, killIndirect, killXref, readDocObj, readPages, rebuildXref, releaseLastXrefPartial, releasePage, removeFields, removeUsageRights, resetReleasePage, selectPages, setAppendable, setTampered, setViewerPreferences, setViewerPreferences, shuffleSubsetNames
-
-
-
-
Field Detail
-
fields
private java.util.HashMap fields
-
fileSpec
private java.lang.String fileSpec
-
encoding
private PdfName encoding
-
-
Method Detail
-
readPdf
protected void readPdf() throws java.io.IOException
-
kidNode
private void kidNode(PdfDictionary merged, java.lang.String name)
-
readFields
private void readFields()
-
getFields
public java.util.HashMap getFields()
Gets all the fields. The map is keyed by the fully qualified field name and the value is a mergedPdfDictionary
with the field content.- Returns:
- all the fields
-
getFieldValue
java.lang.String getFieldValue(java.lang.String name)
Gets the field value ornull
if the field does not exist or has no value defined.- Parameters:
name
- the fully qualified field name- Returns:
- the field value or
null
-
getFileSpec
public java.lang.String getFileSpec()
Gets the PDF file specification contained in the FDF.- Returns:
- the PDF file specification contained in the FDF
-
-