| Modifier and Type | Field and Description |
|---|---|
| private static final Log |
| Access | Constructor and Description |
|---|---|
| public | |
| public | PDFParser(RandomAccessRead
input representing the pdf. source, String password to be used for decryption. decryptionPassword)Constructor. |
| public | PDFParser(RandomAccessRead
input representing the pdf. source, String password to be used for decryption. decryptionPassword, InputStream key store to be used for decryption when using public key security keyStore, String alias to be used for decryption when using public key security alias)Constructor. |
| public | PDFParser(RandomAccessRead
input representing the pdf. source, String password to be used for decryption. decryptionPassword, InputStream key store to be used for decryption when using public key security keyStore, String alias to be used for decryption when using public key security alias, RandomAccessStreamCache.a function to create an instance of the stream cache streamCacheCreateFunctionConstructor. |
| Modifier and Type | Method and Description |
|---|---|
| protected PDDocument | |
| protected void | initialParse()
The initial parse will first parse only the trailer, the xrefstart and all xref tables to have a pointer (offset) to all the pdf's objects. |
| public static PDDocument | Returns: loaded documentfile to be loaded file)
Deprecated
use
Loader#loadPDF(File) instead
Parses a PDF. |
| public static PDDocument | Returns: loaded documentfile to be loaded file, String password to be used for decryption password)
Deprecated
use
Loader#loadPDF(File, String) instead
Parses a PDF. |
| public PDDocument | Returns: the populated PDDocumentThis will parse the stream and populate the PDDocument object. |
| public PDDocument | Returns: the populated PDDocumentactivate leniency if set to true lenient)This will parse the stream and populate the PDDocument object. |
| LOG | back to summary |
|---|---|
| private static final Log LOG | |
| PDFParser | back to summary |
|---|---|
| public PDFParser(RandomAccessRead source) throws IOException Constructor. Unrestricted main memory will be used for buffering PDF streams.
| |
| PDFParser | back to summary |
|---|---|
| public PDFParser(RandomAccessRead source, String decryptionPassword) throws IOException Constructor. Unrestricted main memory will be used for buffering PDF streams.
| |
| PDFParser | back to summary |
|---|---|
| public PDFParser(RandomAccessRead source, String decryptionPassword, InputStream keyStore, String alias) throws IOException Constructor. Unrestricted main memory will be used for buffering PDF streams.
| |
| PDFParser | back to summary |
|---|---|
| public PDFParser(RandomAccessRead source, String decryptionPassword, InputStream keyStore, String alias, RandomAccessStreamCache. Constructor.
| |
| createDocument | back to summary |
|---|---|
| protected PDDocument createDocument() throws IOException Create the resulting document. Maybe overwritten if the parser uses another class as document.
| |
| initialParse | back to summary |
|---|---|
| protected void initialParse() throws IOException The initial parse will first parse only the trailer, the xrefstart and all xref tables to have a pointer (offset) to all the pdf's objects. It can handle linearized pdfs, which will have an xref at the end pointing to an xref at the beginning of the file. Last the root object is parsed.
| |
| load | back to summary |
|---|---|
| public static PDDocument load(File file) throws IOException
Deprecated use Parses a PDF. Unrestricted main memory will be used for buffering PDF streams.
| |
| load | back to summary |
|---|---|
| public static PDDocument load(File file, String password) throws IOException
Deprecated use Parses a PDF. Unrestricted main memory will be used for buffering PDF streams.
| |
| parse | back to summary |
|---|---|
| public PDDocument parse() throws IOException This will parse the stream and populate the PDDocument object. This will close the keystore stream when it is done parsing. Lenient mode is active by default.
| |
| parse | back to summary |
|---|---|
| public PDDocument parse(boolean lenient) throws IOException This will parse the stream and populate the PDDocument object. This will close the keystore stream when it is done parsing.
| |