|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.lowagie.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 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 Summary | |
---|---|
PdfFile(byte[] file)
Constructs a PdfFile object. |
|
PdfFile(java.io.File file)
Constructs a PdfFile object. |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.io.File directory
protected java.lang.String filename
protected PdfReader reader
protected com.sun.pdfview.PDFFile PDFFile
protected Permissions permissions
Constructor Detail |
---|
public PdfFile(java.io.File file) throws java.io.IOException, DocumentException
file
- the File to read
java.io.IOException
DocumentException
public PdfFile(byte[] file) throws java.io.IOException, DocumentException
file
- the byte[] to read
java.io.IOException
DocumentException
Method Detail |
---|
protected void readFile(RandomAccessFileOrArray pdf) throws java.io.IOException, DocumentException
pdf
- a Random Access File or Array
java.io.IOException
DocumentException
protected RandomAccessFileOrArray workAround() throws DocumentException, java.io.IOException
DocumentException
java.io.IOException
public PdfReader getPdfReader()
public com.sun.pdfview.PDFFile getPDFFile()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |