com.lowagie.rups.model
public class PdfFile extends Object
| 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 PDFFile | PDFFile SUN's PDFFile object. |
| protected PdfReader | reader The PdfReader object. |
| Constructor Summary | |
|---|---|
| PdfFile(File file)
Constructs a PdfFile object. | |
| PdfFile(byte[] file)
Constructs a PdfFile object. | |
| Method Summary | |
|---|---|
| PdfReader | getPdfReader()
Getter for iText's PdfReader object. |
| PDFFile | getPDFFile()
Getter for SUN's PDFFile object (for the renderer) |
| protected void | readFile(RandomAccessFileOrArray pdf)
Does the actual reading of the file into PdfReader and PDFFile. |
| protected RandomAccessFileOrArray | workAround() |
Parameters: file the File to read
Throws: IOException DocumentException
Parameters: file the byte[] to read
Throws: IOException DocumentException
Returns: a PdfReader object
Returns: a PDFFile object
Parameters: pdf a Random Access File or Array
Throws: IOException DocumentException