public class FdfReader extends PdfReader
PdfReader.PageRefs
Modifier and Type | Field and Description |
---|---|
(package private) PdfName |
encoding |
(package private) HashMap<String,PdfDictionary> |
fields |
(package private) 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, unethicalreading, 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 |
---|---|
byte[] |
getAttachedFile(String name)
Gets a byte[] containing a file that is embedded in the FDF.
|
PdfDictionary |
getField(String name)
Gets the field dictionary.
|
HashMap<String,PdfDictionary> |
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, decodeBytes, 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, getPageContent, getPageN, getPageNRelease, getPageOrigRef, getPageResources, getPageResources, 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
HashMap<String,PdfDictionary> fields
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<String,PdfDictionary> getFields()
PdfDictionary
with the field content.public PdfDictionary getField(String name)
name
- the fully qualified field namepublic byte[] getAttachedFile(String name) throws IOException
name
- the fully qualified field nameIOException
public 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()
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses