public class FilePdfSource extends PdfSource
PdfSource
which based on a file system object.KEY_NAME, KEY_PASSWORD, KEY_PATH
Constructor and Description |
---|
FilePdfSource(java.io.File pdfFile)
Creates the
PdfSource for a file system object. |
FilePdfSource(java.io.File pdfFile,
java.lang.String explicitName)
Creates the
PdfSource for a file system object. |
FilePdfSource(java.io.File pdfFile,
java.lang.String explicitName,
boolean setNoMetaPath)
Creates the
PdfSource for a file system object. |
Modifier and Type | Method and Description |
---|---|
long |
getLastModified()
Returns the time of the last modification to the document.
|
java.lang.String |
getPath()
Get the path of this document, if one exist.
|
long |
getSize()
Returns the size of the raw data in bytes
|
getLanguage, getMetaProperties, getName, getPassword, setLanguage, setPageLimit, setPassword
public FilePdfSource(java.io.File pdfFile)
PdfSource
for a file system object.pdfFile
- the actual PDF document filejava.lang.IllegalArgumentException
- in case pdfFile cannot be accessed or is a directorypublic FilePdfSource(java.io.File pdfFile, java.lang.String explicitName)
PdfSource
for a file system object.pdfFile
- the actual PDF document fileexplicitName
- the name to be set for this PdfSource
, this replaces the name derived from the filejava.lang.IllegalArgumentException
- in case pdfFile cannot be accessed or is a directorypublic FilePdfSource(java.io.File pdfFile, java.lang.String explicitName, boolean setNoMetaPath)
PdfSource
for a file system object.pdfFile
- the actual PDF document fileexplicitName
- the name to be set for this PdfSource
, this replaces the name derived from the filesetNoMetaPath
- true for removing path information, for other case falsejava.lang.IllegalArgumentException
- in case pdfFile cannot be accessed or is a directorypublic long getLastModified()
getLastModified
in class PdfSource
public long getSize()
Copyright © 2010-2022 by i-net software GmbH