public class FDFParser extends COSParser
A, ASCII_CR, ASCII_LF, B, D, DEF, document, E, ENDOBJ_STRING, ENDSTREAM_STRING, J, M, N, O, R, S, seqSource, STREAM_STRING, T
EOF_MARKER, fileLen, initialParseDone, OBJ_MARKER, securityHandler, source, SYSPROP_EOFLOOKUPRANGE, SYSPROP_PARSEMINIMAL, TMP_FILE_PREFIX, xrefTrailerResolver
Constructor | Description |
---|---|
FDFParser(java.io.File file) |
Constructs parser for given file using given buffer for temporary
storage.
|
FDFParser(java.io.InputStream input) |
Constructor.
|
FDFParser(java.lang.String filename) |
Constructs parser for given file using memory buffer.
|
Modifier and Type | Method | Description |
---|---|---|
protected boolean |
isCatalog(COSDictionary dictionary) |
Tell if the dictionary is a FDF catalog.
|
void |
parse() |
This will parse the stream and populate the COSDocument object.
|
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, skipSpaces, skipWhiteSpaces
checkPages, getDocument, getStartxrefOffset, isLenient, lastIndexOf, parseCOSStream, parseDictObjects, parseFDFHeader, parseObjectDynamically, parseObjectDynamically, parsePDFHeader, parseTrailerValuesDynamically, parseXref, parseXrefTable, rebuildTrailer, retrieveTrailer, setEOFLookupRange, setLenient
public FDFParser(java.lang.String filename) throws java.io.IOException
filename
- the filename of the pdf to be parsedjava.io.IOException
- If something went wrong.public FDFParser(java.io.File file) throws java.io.IOException
file
- the pdf to be parsedjava.io.IOException
- If something went wrong.public FDFParser(java.io.InputStream input) throws java.io.IOException
input
- input stream representing the pdf.java.io.IOException
- If something went wrong.protected final boolean isCatalog(COSDictionary dictionary)
public void parse() throws java.io.IOException
java.io.IOException
- If there is an error reading from the stream or corrupt data
is found.Copyright © 2002–2018. All rights reserved.