Package org.verapdf.parser
Class PDFParser
java.lang.Object
org.verapdf.parser.COSParser
org.verapdf.parser.SeekableCOSParser
org.verapdf.parser.PDFParser
- Author:
- Timur Kamalov
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final intLinearization dictionary must be in first 1024 bytes of document -
Constructor Summary
ConstructorsConstructorDescriptionPDFParser(InputStream fileStream) PDFParser(COSDocument document, InputStream fileStream) PDFParser(COSDocument document, String filename) -
Method Summary
Modifier and TypeMethodDescriptionprotected COSObjectdecryptCOSString(COSObject string) getObject(long offset) voidgetXRefInfo(List<COSXRefInfo> infos) booleanbooleanbooleanprotected voidparseXrefTable(COSXRefSection xrefs) Methods inherited from class org.verapdf.parser.SeekableCOSParser
closeInputStream, getBaseParser, getDictionary, getDocument, getErrorMessage, getErrorMessage, getSource, getStreamMethods inherited from class org.verapdf.parser.COSParser
getArray, getCloseDictionary, getName, nextObject
-
Field Details
-
LINEARIZATION_DICTIONARY_LOOKUP_SIZE
protected static final int LINEARIZATION_DICTIONARY_LOOKUP_SIZELinearization dictionary must be in first 1024 bytes of document- See Also:
-
-
Constructor Details
-
PDFParser
- Throws:
IOException
-
PDFParser
- Throws:
IOException
-
PDFParser
- Throws:
IOException
-
PDFParser
- Throws:
IOException
-
-
Method Details
-
getHeader
- Throws:
IOException
-
getPDFSource
-
isLinearized
public boolean isLinearized() -
getLinearizationDictionary
-
getXRefInfo
- Throws:
IOException
-
getObject
- Throws:
IOException
-
parseXrefTable
- Throws:
IOException
-
isEncrypted
public boolean isEncrypted() -
getEncryption
-
getLastTrailerOffset
-
getLastXRefStream
-
isContainsXRefStream
public boolean isContainsXRefStream() -
decryptCOSString
- Overrides:
decryptCOSStringin classCOSParser
-