public class PdfFile
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.io.File |
directory
The directory where the file can be found (if the PDF was passed as a file).
|
protected java.lang.String |
filename
The original filename.
|
protected com.sun.pdfview.PDFFile |
PDFFile
SUN's PDFFile object.
|
protected Permissions |
permissions
The file permissions
|
protected PdfReader |
reader
The PdfReader object.
|
| Constructor and Description |
|---|
PdfFile(byte[] file)
Constructs a PdfFile object.
|
PdfFile(java.io.File file)
Constructs a PdfFile object.
|
| Modifier and Type | Method and Description |
|---|---|
com.sun.pdfview.PDFFile |
getPDFFile()
Getter for SUN's PDFFile object (for the renderer)
|
PdfReader |
getPdfReader()
Getter for iText's PdfReader object.
|
protected void |
readFile(RandomAccessFileOrArray pdf)
Does the actual reading of the file into PdfReader and PDFFile.
|
protected RandomAccessFileOrArray |
workAround() |
protected java.io.File directory
protected java.lang.String filename
protected PdfReader reader
protected com.sun.pdfview.PDFFile PDFFile
protected Permissions permissions
public PdfFile(java.io.File file)
throws java.io.IOException,
DocumentException
file - the File to readjava.io.IOExceptionDocumentExceptionpublic PdfFile(byte[] file)
throws java.io.IOException,
DocumentException
file - the byte[] to readjava.io.IOExceptionDocumentExceptionprotected void readFile(RandomAccessFileOrArray pdf) throws java.io.IOException, DocumentException
pdf - a Random Access File or Arrayjava.io.IOExceptionDocumentExceptionprotected RandomAccessFileOrArray workAround() throws DocumentException, java.io.IOException
DocumentExceptionjava.io.IOExceptionpublic PdfReader getPdfReader()
public com.sun.pdfview.PDFFile getPDFFile()