public class FdfReader extends PdfReader
acroForm, acroFormParsed, catalog, certificate, certificateKey, certificateKeyProvider, consolidateNamedDestinations, decrypt, encrypted, eofPos, freeXref, lastXref, newXrefType, objStmMark, objStmToOffset, pageRefs, password, pdfVersion, pValue, rebuilt, remoteToLocalNamedDestinations, rValue, sharedStreams, strings, tampered, tokens, trailer, xref
Constructor and Description |
---|
FdfReader(byte[] pdfIn)
Reads an FDF form.
|
FdfReader(InputStream is)
Reads an FDF form.
|
FdfReader(String filename)
Reads an FDF form.
|
FdfReader(URL url)
Reads an FDF form.
|
Modifier and Type | Method and Description |
---|---|
PdfDictionary |
getField(String name)
Gets the field dictionary.
|
HashMap |
getFields()
Gets all the fields.
|
String |
getFieldValue(String name)
Gets the field value or
null if the field does not
exist or has no value defined. |
String |
getFileSpec()
Gets the PDF file specification contained in the FDF.
|
protected void |
kidNode(PdfDictionary merged,
String name) |
protected void |
readFields() |
protected void |
readPdf() |
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, isModificationlowedWithoutOwnerPassword, 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, setModificationAllowedWithoutOwnerPassword, setPageContent, setPageContent, setTampered, setViewerPreferences, shuffleSubsetNames
public FdfReader(String filename) throws IOException
filename
- the file name of the formIOException
- on errorpublic FdfReader(byte[] pdfIn) throws IOException
pdfIn
- the byte array with the formIOException
- on errorpublic FdfReader(URL url) throws IOException
url
- the URL of the documentIOException
- on errorpublic FdfReader(InputStream is) throws IOException
is
- the InputStream
containing the document. The stream is read to the
end but is not closedIOException
- on errorprotected void readPdf() throws IOException
readPdf
in class PdfReader
IOException
protected void kidNode(PdfDictionary merged, String name)
protected void readFields()
public HashMap getFields()
PdfDictionary
with the field content.public PdfDictionary getField(String name)
name
- the fully qualified field namepublic String getFieldValue(String name)
null
if the field does not
exist or has no value defined.name
- the fully qualified field namenull
public String getFileSpec()
Copyright © 2018. All rights reserved.