Class FDFParser
java.lang.Object
org.apache.pdfbox.pdfparser.BaseParser
org.apache.pdfbox.pdfparser.COSParser
org.apache.pdfbox.pdfparser.FDFParser
-
Field Summary
Fields inherited from class COSParser
EOF_MARKER, fileLen, initialParseDone, OBJ_MARKER, securityHandler, source, SYSPROP_EOFLOOKUPRANGE, SYSPROP_PARSEMINIMAL, TMP_FILE_PREFIX, xrefTrailerResolverFields inherited from class BaseParser
A, ASCII_CR, ASCII_LF, B, D, DEF, document, E, ENDOBJ_STRING, ENDSTREAM_STRING, J, M, N, O, R, S, STREAM_STRING, T -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final booleanisCatalog(COSDictionary dictionary) Tell if the dictionary is a FDF catalog.voidparse()This will parse the stream and populate the COSDocument object.Methods inherited from class COSParser
checkPages, getAccessPermission, getDocument, getEncryption, getStartxrefOffset, isLenient, lastIndexOf, parseCOSStream, parseDictObjects, parseFDFHeader, parseObjectDynamically, parseObjectDynamically, parsePDFHeader, parseTrailerValuesDynamically, parseXref, parseXrefTable, rebuildTrailer, retrieveTrailer, setEOFLookupRange, setLenientMethods inherited from class BaseParser
isClosing, isClosing, isDigit, isDigit, isEndOfName, isEOL, isEOL, isSpace, isSpace, isWhitespace, isWhitespace, parseBoolean, parseCOSArray, parseCOSDictionary, parseCOSName, parseCOSString, parseDirObject, readExpectedChar, readExpectedString, readExpectedString, readGenerationNumber, readInt, readLine, readLong, readObjectNumber, readString, readString, readStringNumber, skipLinebreak, skipSpaces, skipWhiteSpaces
-
Constructor Details
-
FDFParser
Constructs parser for given file using memory buffer.- Parameters:
filename- the filename of the pdf to be parsed- Throws:
IOException- If something went wrong.
-
FDFParser
Constructs parser for given file using given buffer for temporary storage.- Parameters:
file- the pdf to be parsed- Throws:
IOException- If something went wrong.
-
FDFParser
Constructor.- Parameters:
input- input stream representing the pdf.- Throws:
IOException- If something went wrong.
-
-
Method Details
-
isCatalog
Tell if the dictionary is a FDF catalog. -
parse
This will parse the stream and populate the COSDocument object.- Throws:
IOException- If there is an error reading from the stream or corrupt data is found.
-