public class PDFParser extends Object
SeekableSource and obtain a PDDocument or
IncrementablePDDocument.| Constructor and Description |
|---|
PDFParser() |
| Modifier and Type | Method and Description |
|---|---|
static PDDocument |
parse(org.sejda.io.SeekableSource source)
Parses the given
SeekableSource returning the corresponding PDDocument. |
static PDDocument |
parse(org.sejda.io.SeekableSource source,
DecryptionMaterial decryptionMaterial)
Parses the given
SeekableSource using the given DecryptionMaterial, returning the corresponding
decrypted PDDocument. |
static PDDocument |
parse(org.sejda.io.SeekableSource source,
String password)
Parses the given
SeekableSource using the given password, returning the corresponding decrypted
PDDocument. |
static IncrementablePDDocument |
parseToIncrement(org.sejda.io.SeekableSource source)
Parses the given
SeekableSource returning the corresponding IncrementablePDDocument. |
static IncrementablePDDocument |
parseToIncrement(org.sejda.io.SeekableSource source,
DecryptionMaterial decryptionMaterial)
Parses the given
SeekableSource using the given DecryptionMaterial, returning the corresponding
decrypted IncrementablePDDocument to be used for an incremental update. |
static IncrementablePDDocument |
parseToIncrement(org.sejda.io.SeekableSource source,
String password)
Parses the given
SeekableSource using the given password, , returning the corresponding decrypted
IncrementablePDDocument to be used for an incremental update. |
public static PDDocument parse(org.sejda.io.SeekableSource source) throws IOException
SeekableSource returning the corresponding PDDocument.source - IOExceptionpublic static IncrementablePDDocument parseToIncrement(org.sejda.io.SeekableSource source) throws IOException
SeekableSource returning the corresponding IncrementablePDDocument.source - IOExceptionpublic static PDDocument parse(org.sejda.io.SeekableSource source, String password) throws IOException
SeekableSource using the given password, returning the corresponding decrypted
PDDocument.source - SeekableSource to parsepassword - to be used for decryption. Optional.IOExceptionpublic static IncrementablePDDocument parseToIncrement(org.sejda.io.SeekableSource source, String password) throws IOException
SeekableSource using the given password, , returning the corresponding decrypted
IncrementablePDDocument to be used for an incremental update.source - SeekableSource to parsepassword - to be used for decryption. Optional.IOExceptionpublic static PDDocument parse(org.sejda.io.SeekableSource source, DecryptionMaterial decryptionMaterial) throws IOException
SeekableSource using the given DecryptionMaterial, returning the corresponding
decrypted PDDocument.source - SeekableSource to parsedecryptionMaterial - to be used for decryption. Optional.IOExceptionpublic static IncrementablePDDocument parseToIncrement(org.sejda.io.SeekableSource source, DecryptionMaterial decryptionMaterial) throws IOException
SeekableSource using the given DecryptionMaterial, returning the corresponding
decrypted IncrementablePDDocument to be used for an incremental update.source - SeekableSource to parsedecryptionMaterial - to be used for decryption. Optional.IOExceptionCopyright © 2020 sejda. All rights reserved.