com.lowagie.rups.model
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 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 |
---|---|
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 java.io.File directory
protected java.lang.String filename
protected PdfReader reader
protected Permissions permissions
public PdfFile(java.io.File file) throws java.io.IOException, DocumentException
file
- the File to readjava.io.IOException
DocumentException
public PdfFile(byte[] file) throws java.io.IOException, DocumentException
file
- the byte[] to readjava.io.IOException
DocumentException
protected void readFile(RandomAccessFileOrArray pdf) throws java.io.IOException, DocumentException
pdf
- a Random Access File or Arrayjava.io.IOException
DocumentException
public PdfReader getPdfReader()