com.lowagie.text.pdf
public class FdfReader extends PdfReader
PdfReader.PageRefs
Modifier and Type | Field and Description |
---|---|
(package private) PdfName |
encoding |
(package private) java.util.HashMap |
fields |
(package private) java.lang.String |
fileSpec |
acroForm, acroFormParsed, catalog, certificate, certificateKey, certificateKeyProvider, consolidateNamedDestinations, decrypt, encrypted, endobj, endstream, eofPos, freeXref, lastXref, newXrefType, objStmMark, objStmToOffset, pageInhCandidates, pageRefs, password, pdfVersion, pValue, rebuilt, remoteToLocalNamedDestinations, rootPages, rValue, sharedStreams, strings, tampered, tokens, trailer, xref
Constructor and Description |
---|
FdfReader(byte[] pdfIn)
Reads an FDF form.
|
FdfReader(java.io.InputStream is)
Reads an FDF form.
|
FdfReader(java.lang.String filename)
Reads an FDF form.
|
FdfReader(java.net.URL url)
Reads an FDF form.
|
Modifier and Type | Method and Description |
---|---|
PdfDictionary |
getField(java.lang.String name)
Gets the field dictionary.
|
java.util.HashMap |
getFields()
Gets all the fields.
|
java.lang.String |
getFieldValue(java.lang.String name)
Gets the field value or
null if the field does not
exist or has no value defined. |
java.lang.String |
getFileSpec()
Gets the PDF file specification contained in the FDF.
|
protected void |
kidNode(PdfDictionary merged,
java.lang.String name) |
protected void |
readFields() |
protected void |
readPdf() |
addPdfObject, addViewerPreference, ASCII85Decode, ASCIIHexDecode, close, computeUserPassword, consolidateNamedDestinations, createFakeFontSubsets, decodePredictor, dumpPerc, duplicatePdfDictionary, duplicatePdfObject, eliminateSharedStreams, equalsn, existsName, FlateDecode, FlateDecode, getAcroFields, getAcroForm, getBoxSize, getCatalog, getCertificationLevel, getCropBox, getCryptoMode, getCryptoRef, getDecrypt, getEofPos, getFileLength, getFontName, getInfo, getJavaScript, getJavaScript, getLastXref, getLinks, getMetadata, getNamedDestination, getNamedDestination, getNamedDestinationFromNames, getNamedDestinationFromNames, getNamedDestinationFromStrings, getNormalizedRectangle, getNumberOfPages, getPageContent, getPageContent, getPageN, getPageNRelease, getPageOrigRef, getPageRotation, getPageRotation, getPageSize, getPageSize, getPageSizeWithRotation, getPageSizeWithRotation, getPdfObject, getPdfObject, getPdfObject, getPdfObjectRelease, getPdfObjectRelease, getPdfObjectRelease, getPdfReaderInstance, getPdfVersion, getPermissions, getSafeFile, getSimpleViewerPreferences, getStreamBytes, getStreamBytes, getStreamBytesRaw, getStreamBytesRaw, getSubsetPrefix, getTrailer, getXrefSize, is128Key, isAppendable, isEncrypted, isHybridXref, isMetadataEncrypted, isNewXrefType, isOpenedWithFullPermissions, isRebuilt, isTampered, killIndirect, killXref, LZWDecode, makeRemoteNamedDestinationsLocal, 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, setViewerPreferences, shuffleSubsetNames
java.util.HashMap fields
java.lang.String fileSpec
PdfName encoding
public FdfReader(java.lang.String filename) throws java.io.IOException
filename
- the file name of the formjava.io.IOException
- on errorpublic FdfReader(byte[] pdfIn) throws java.io.IOException
pdfIn
- the byte array with the formjava.io.IOException
- on errorpublic FdfReader(java.net.URL url) throws java.io.IOException
url
- the URL of the documentjava.io.IOException
- on errorpublic FdfReader(java.io.InputStream is) throws java.io.IOException
is
- the InputStream
containing the document. The stream is read to the
end but is not closedjava.io.IOException
- on errorprotected void readPdf() throws java.io.IOException
protected void kidNode(PdfDictionary merged, java.lang.String name)
protected void readFields()
public java.util.HashMap getFields()
PdfDictionary
with the field content.public PdfDictionary getField(java.lang.String name)
name
- the fully qualified field namepublic java.lang.String getFieldValue(java.lang.String name)
null
if the field does not
exist or has no value defined.name
- the fully qualified field namenull
public java.lang.String getFileSpec()