public final class PdfFileSource extends AbstractPdfSource<File>
AbstractPdfSource from a File| Modifier and Type | Method and Description |
|---|---|
File |
getSource() |
static PdfFileSource |
newInstanceNoPassword(File file)
Creates a new instance of the pdf source where a password is NOT required to open the source.
|
static PdfFileSource |
newInstanceWithPassword(File file,
String password)
Creates a new instance of the pdf source where a password is required to open the source.
|
<T> T |
open(PdfSourceOpener<T> opener)
Dispatch method to open the source.
|
String |
toString() |
getName, getPassword, getPasswordBytespublic File getSource()
public <T> T open(PdfSourceOpener<T> opener) throws TaskIOException
PdfSourceT - generic type as result of the open action.TaskIOException - in case of error opening the source.public static PdfFileSource newInstanceNoPassword(File file)
file - input pdf filepublic static PdfFileSource newInstanceWithPassword(File file, String password)
file - input pdf filepassword - public String toString()
toString in class AbstractPdfSource<File>Copyright © 2015. All Rights Reserved.