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 int
Linearization 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 COSObject
decryptCOSString
(COSObject string) getObject
(long offset) void
getXRefInfo
(List<COSXRefInfo> infos) boolean
boolean
boolean
protected void
parseXrefTable
(COSXRefSection xrefs) Methods inherited from class org.verapdf.parser.SeekableCOSParser
closeInputStream, getBaseParser, getDictionary, getDocument, getErrorMessage, getErrorMessage, getSource, getStream
Methods 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:
decryptCOSString
in classCOSParser
-