public class Loader extends Object
| Modifier and Type | Method and Description |
|---|---|
static FDFDocument |
loadFDF(File file)
This will load a document from a file.
|
static FDFDocument |
loadFDF(InputStream input)
This will load a document from an input stream.
|
static FDFDocument |
loadFDF(String filename)
This will load a document from a file.
|
static PDDocument |
loadPDF(byte[] input)
Parses a PDF.
|
static PDDocument |
loadPDF(byte[] input,
String password)
Parses a PDF.
|
static PDDocument |
loadPDF(byte[] input,
String password,
InputStream keyStore,
String alias)
Parses a PDF.
|
static PDDocument |
loadPDF(byte[] input,
String password,
InputStream keyStore,
String alias,
MemoryUsageSetting memUsageSetting)
Parses a PDF.
|
static PDDocument |
loadPDF(File file)
Parses a PDF.
|
static PDDocument |
loadPDF(File file,
MemoryUsageSetting memUsageSetting)
Parses a PDF.
|
static PDDocument |
loadPDF(File file,
String password)
Parses a PDF.
|
static PDDocument |
loadPDF(File file,
String password,
InputStream keyStore,
String alias)
Parses a PDF.
|
static PDDocument |
loadPDF(File file,
String password,
InputStream keyStore,
String alias,
MemoryUsageSetting memUsageSetting)
Parses a PDF.
|
static PDDocument |
loadPDF(File file,
String password,
MemoryUsageSetting memUsageSetting)
Parses a PDF.
|
static PDDocument |
loadPDF(InputStream input)
Parses a PDF.
|
static PDDocument |
loadPDF(InputStream input,
MemoryUsageSetting memUsageSetting)
Parses a PDF.
|
static PDDocument |
loadPDF(InputStream input,
String password)
Parses a PDF.
|
static PDDocument |
loadPDF(InputStream input,
String password,
InputStream keyStore,
String alias)
Parses a PDF.
|
static PDDocument |
loadPDF(InputStream input,
String password,
InputStream keyStore,
String alias,
MemoryUsageSetting memUsageSetting)
Parses a PDF.
|
static PDDocument |
loadPDF(InputStream input,
String password,
MemoryUsageSetting memUsageSetting)
Parses a PDF.
|
static PDDocument |
loadPDF(RandomAccessRead raFile,
String password,
InputStream keyStore,
String alias,
MemoryUsageSetting memUsageSetting)
Parses a PDF.
|
static FDFDocument |
loadXFDF(File file)
This will load a document from a file.
|
static FDFDocument |
loadXFDF(InputStream input)
This will load a document from an input stream.
|
static FDFDocument |
loadXFDF(String filename)
This will load a document from a file.
|
public static FDFDocument loadFDF(String filename) throws IOException
filename - The name of the file to load.IOException - If there is an error reading from the stream.public static FDFDocument loadFDF(File file) throws IOException
file - The name of the file to load.IOException - If there is an error reading from the stream.public static FDFDocument loadFDF(InputStream input) throws IOException
input - The stream that contains the document.IOException - If there is an error reading from the stream.public static FDFDocument loadXFDF(String filename) throws IOException
filename - The name of the file to load.IOException - If there is an error reading from the stream.public static FDFDocument loadXFDF(File file) throws IOException
file - The name of the file to load.IOException - If there is an error reading from the stream.public static FDFDocument loadXFDF(InputStream input) throws IOException
input - The stream that contains the document.IOException - If there is an error reading from the stream.public static PDDocument loadPDF(byte[] input) throws IOException
input - byte array that contains the document.InvalidPasswordException - If the PDF required a non-empty password.IOException - In case of a reading or parsing error.public static PDDocument loadPDF(byte[] input, String password) throws IOException
input - byte array that contains the document.password - password to be used for decryptionInvalidPasswordException - If the password is incorrect.IOException - In case of a reading or parsing error.public static PDDocument loadPDF(byte[] input, String password, InputStream keyStore, String alias) throws IOException
input - byte array that contains the document.password - password to be used for decryptionkeyStore - key store to be used for decryption when using public key securityalias - alias to be used for decryption when using public key securityInvalidPasswordException - If the password is incorrect.IOException - In case of a reading or parsing error.public static PDDocument loadPDF(byte[] input, String password, InputStream keyStore, String alias, MemoryUsageSetting memUsageSetting) throws IOException
input - byte array that contains the document.password - password to be used for decryptionkeyStore - key store to be used for decryption when using public key securityalias - alias to be used for decryption when using public key securitymemUsageSetting - defines how memory is used for buffering input stream and PDF streamsInvalidPasswordException - If the password is incorrect.IOException - In case of a reading or parsing error.public static PDDocument loadPDF(File file) throws IOException
file - file to be loadedInvalidPasswordException - If the file required a non-empty password.IOException - in case of a file reading or parsing errorpublic static PDDocument loadPDF(File file, MemoryUsageSetting memUsageSetting) throws IOException
file - file to be loadedmemUsageSetting - defines how memory is used for buffering PDF streamsInvalidPasswordException - If the file required a non-empty password.IOException - in case of a file reading or parsing errorpublic static PDDocument loadPDF(File file, String password) throws IOException
file - file to be loadedpassword - password to be used for decryptionInvalidPasswordException - If the password is incorrect.IOException - in case of a file reading or parsing errorpublic static PDDocument loadPDF(File file, String password, MemoryUsageSetting memUsageSetting) throws IOException
file - file to be loadedpassword - password to be used for decryptionmemUsageSetting - defines how memory is used for buffering PDF streamsInvalidPasswordException - If the password is incorrect.IOException - in case of a file reading or parsing errorpublic static PDDocument loadPDF(File file, String password, InputStream keyStore, String alias) throws IOException
file - file to be loadedpassword - password to be used for decryptionkeyStore - key store to be used for decryption when using public key securityalias - alias to be used for decryption when using public key securityIOException - in case of a file reading or parsing errorpublic static PDDocument loadPDF(File file, String password, InputStream keyStore, String alias, MemoryUsageSetting memUsageSetting) throws IOException
file - file to be loadedpassword - password to be used for decryptionkeyStore - key store to be used for decryption when using public key securityalias - alias to be used for decryption when using public key securitymemUsageSetting - defines how memory is used for buffering PDF streamsIOException - in case of a file reading or parsing errorpublic static PDDocument loadPDF(RandomAccessRead raFile, String password, InputStream keyStore, String alias, MemoryUsageSetting memUsageSetting) throws IOException
raFile - random access read representing the pdf to be loadedpassword - password to be used for decryptionkeyStore - key store to be used for decryption when using public key securityalias - alias to be used for decryption when using public key securitymemUsageSetting - defines how memory is used PDF streamsIOException - in case of a file reading or parsing errorpublic static PDDocument loadPDF(InputStream input) throws IOException
input - stream that contains the document. Don't forget to close it after loading.InvalidPasswordException - If the PDF required a non-empty password.IOException - In case of a reading or parsing error.public static PDDocument loadPDF(InputStream input, MemoryUsageSetting memUsageSetting) throws IOException
input - stream that contains the document. Don't forget to close it after loading.memUsageSetting - defines how memory is used for buffering PDF streamsInvalidPasswordException - If the PDF required a non-empty password.IOException - In case of a reading or parsing error.public static PDDocument loadPDF(InputStream input, String password) throws IOException
input - stream that contains the document. Don't forget to close it after loading.password - password to be used for decryptionInvalidPasswordException - If the password is incorrect.IOException - In case of a reading or parsing error.public static PDDocument loadPDF(InputStream input, String password, InputStream keyStore, String alias) throws IOException
input - stream that contains the document. Don't forget to close it after loading.password - password to be used for decryptionkeyStore - key store to be used for decryption when using public key securityalias - alias to be used for decryption when using public key securityIOException - In case of a reading or parsing error.public static PDDocument loadPDF(InputStream input, String password, MemoryUsageSetting memUsageSetting) throws IOException
input - stream that contains the document. Don't forget to close it after loading.password - password to be used for decryptionmemUsageSetting - defines how memory is used for buffering PDF streamsInvalidPasswordException - If the password is incorrect.IOException - In case of a reading or parsing error.public static PDDocument loadPDF(InputStream input, String password, InputStream keyStore, String alias, MemoryUsageSetting memUsageSetting) throws IOException
input - stream that contains the document. Don't forget to close it after loading.password - password to be used for decryptionkeyStore - key store to be used for decryption when using public key securityalias - alias to be used for decryption when using public key securitymemUsageSetting - defines how memory is used for buffering PDF streamsInvalidPasswordException - If the password is incorrect.IOException - In case of a reading or parsing error.Copyright © 2002–2021 The Apache Software Foundation. All rights reserved.