|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.itextpdf.rups.model.PdfFile
public class PdfFile
Wrapper for both iText's PdfReader (referring to a PDF file to read) and SUN's PDFFile (referring to the same PDF file to render).
Field Summary | |
---|---|
protected File |
directory
The directory where the file can be found (if the PDF was passed as a file). |
protected String |
filename
The original filename. |
protected Permissions |
permissions
The file permissions |
protected com.itextpdf.text.pdf.PdfReader |
reader
The PdfReader object. |
Constructor Summary | |
---|---|
PdfFile(byte[] file)
Constructs a PdfFile object. |
|
PdfFile(File file)
Constructs a PdfFile object. |
Method Summary | |
---|---|
String |
getFilename()
Getter for the filename |
com.itextpdf.text.pdf.PdfReader |
getPdfReader()
Getter for iText's PdfReader object. |
protected void |
readFile(com.itextpdf.text.pdf.RandomAccessFileOrArray pdf)
Does the actual reading of the file into PdfReader and PDFFile. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected File directory
protected String filename
protected com.itextpdf.text.pdf.PdfReader reader
protected Permissions permissions
Constructor Detail |
---|
public PdfFile(File file) throws IOException, com.itextpdf.text.DocumentException
file
- the File to read
IOException
com.itextpdf.text.DocumentException
public PdfFile(byte[] file) throws IOException, com.itextpdf.text.DocumentException
file
- the byte[] to read
IOException
com.itextpdf.text.DocumentException
Method Detail |
---|
protected void readFile(com.itextpdf.text.pdf.RandomAccessFileOrArray pdf) throws IOException, com.itextpdf.text.DocumentException
pdf
- a Random Access File or Array
IOException
com.itextpdf.text.DocumentException
public com.itextpdf.text.pdf.PdfReader getPdfReader()
public String getFilename()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |