PdfViewerPreferences
public class FdfReader extends PdfReader
Modifier and Type | Field | Description |
---|---|---|
protected static Counter |
COUNTER |
acroForm, acroFormParsed, catalog, certificate, certificateKey, certificateKeyProvider, consolidateNamedDestinations, debugmode, decrypt, encrypted, eofPos, externalDecryptionProcess, freeXref, lastXref, newXrefType, objStmMark, objStmToOffset, pageRefs, password, pdfVersion, pValue, rebuilt, remoteToLocalNamedDestinations, rValue, sharedStreams, strings, tampered, tokens, trailer, unethicalreading, xref, xrefObj
Constructor | 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 | Description |
---|---|---|
byte[] |
getAttachedFile(java.lang.String name) |
Gets a byte[] containing a file that is embedded in the FDF.
|
protected Counter |
getCounter() |
|
PdfDictionary |
getField(java.lang.String name) |
Gets the field dictionary.
|
java.util.HashMap<java.lang.String,PdfDictionary> |
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() |
Parses the entire PDF
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addPdfObject, addViewerPreference, ASCII85Decode, ASCIIHexDecode, close, computeUserPassword, consolidateNamedDestinations, createFakeFontSubsets, decodeBytes, decodeBytes, 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, getPageContent, getPageN, getPageNRelease, getPageOrigRef, getPageResources, getPageResources, getPageRotation, getPageSize, getPageSize, getPageSizeWithRotation, getPageSizeWithRotation, getPdfObject, getPdfObject, getPdfObject, getPdfObjectRelease, getPdfObjectRelease, getPdfObjectRelease, getPdfReaderInstance, getPdfVersion, getPermissions, getSafeFile, getSimpleViewerPreferences, getStreamBytes, getStreamBytes, getStreamBytesRaw, getStreamBytesRaw, getTrailer, getXrefSize, hasUsageRights, is128Key, isAppendable, isEncrypted, isHybridXref, isMetadataEncrypted, isNewXrefType, isOpenedWithFullPermissions, isRebuilt, isTagged, 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, selectPages, setAppendable, setPageContent, setPageContent, setPageContent, setTampered, setViewerPreferences, setViewerPreferences, shuffleSubsetNames
protected static Counter COUNTER
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 Counter getCounter()
getCounter
in class PdfReader
protected void readPdf() throws java.io.IOException
PdfReader
protected void kidNode(PdfDictionary merged, java.lang.String name)
protected void readFields()
public java.util.HashMap<java.lang.String,PdfDictionary> getFields()
PdfDictionary
with the field content.public PdfDictionary getField(java.lang.String name)
name
- the fully qualified field namepublic byte[] getAttachedFile(java.lang.String name) throws java.io.IOException
name
- the fully qualified field namejava.io.IOException
public 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()
Copyright © 1998–2018. All rights reserved.