Class FdfReader
java.lang.Object
com.gitlab.pdftk_java.com.lowagie.text.pdf.PdfReader
com.gitlab.pdftk_java.com.lowagie.text.pdf.FdfReader
- All Implemented Interfaces:
PdfViewerPreferences
Reads an FDF form and makes the fields available
-
Nested Class Summary
Nested classes/interfaces inherited from class PdfReader
PdfReader.PageRefs -
Field Summary
FieldsModifier and TypeFieldDescription(package private) PdfName(package private) HashMap(package private) StringFields inherited from class PdfReader
acroForm, acroFormParsed, catalog, consolidateNamedDestinations, decrypt, encrypted, endobj, endstream, eofPos, freeXref, lastXref, newXrefType, objStmMark, objStmToOffset, ownerPasswordUsed, pageInhCandidates, pageRefs, password, pdfVersion, pValue, rebuilt, remoteToLocalNamedDestinations, rootPages, rValue, sharedStreams, strings, tampered, tokens, trailer, vpints, vpnames, xref -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate StringGets the field dictionary.String[]getFieldMultiValue(String name) getFieldRichValue(String name) Gets all the fields.getFieldValue(String name) Gets the field value ornullif the field does not exist or has no value defined.Gets the PDF file specification contained in the FDF.protected voidkidNode(PdfDictionary merged, String name) protected voidprotected voidprotected voidreadPdf()Methods inherited from class PdfReader
addPdfObject, addViewerPreference, ASCII85Decode, ASCIIHexDecode, close, computeUserPassword, consolidateNamedDestinations, createFakeFontSubsets, decodePredictor, dumpPerc, duplicatePdfDictionary, duplicatePdfObject, eliminateSharedStreams, equalsn, existsName, FlateDecode, FlateDecode, getAcroFields, getAcroForm, getBoxSize, getBoxSize, getBoxSize, getCatalog, getCropBox, getCropBox, getCryptoMode, getCryptoRef, getDecrypt, getEofPos, getFileLength, getFontName, getInfo, getJavaScript, getJavaScript, getLastXref, 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, getPRIndirectReference, 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
-
Field Details
-
Constructor Details
-
FdfReader
Reads an FDF form.- Parameters:
filename- the file name of the form- Throws:
IOException- on error
-
FdfReader
Reads an FDF form.- Parameters:
pdfIn- the byte array with the form- Throws:
IOException- on error
-
FdfReader
Reads an FDF form.- Parameters:
url- the URL of the document- Throws:
IOException- on error
-
FdfReader
Reads an FDF form.- Parameters:
is- theInputStreamcontaining the document. The stream is read to the end but is not closed- Throws:
IOException- on error
-
-
Method Details
-
readPdf
- Overrides:
readPdfin classPdfReader- Throws:
IOException
-
kidNode
-
readFileSpecification
-
readFields
- Throws:
IOException
-
getFields
Gets all the fields. The map is keyed by the fully qualified field name and the value is a mergedPdfDictionarywith the field content.- Returns:
- all the fields
-
getField
Gets the field dictionary.- Parameters:
name- the fully qualified field name- Returns:
- the field dictionary
-
decodeString
-
getFieldValue
-
getFieldRichValue
-
getFieldMultiValue
-
getFileSpec
Gets the PDF file specification contained in the FDF.- Returns:
- the PDF file specification contained in the FDF
-