public class PdfFile extends Object
Modifier and Type | Field and Description |
---|---|
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 PdfReader |
reader
The PdfReader object.
|
Constructor and Description |
---|
PdfFile(byte[] file)
Constructs a PdfFile object.
|
PdfFile(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 File directory
protected String filename
protected PdfReader reader
protected Permissions permissions
public PdfFile(File file) throws IOException, DocumentException
file
- the File to readIOException
DocumentException
public PdfFile(byte[] file) throws IOException, DocumentException
file
- the byte[] to readIOException
DocumentException
protected void readFile(RandomAccessFileOrArray pdf) throws IOException, DocumentException
pdf
- a Random Access File or ArrayIOException
DocumentException
public PdfReader getPdfReader()
Copyright © 2015. All rights reserved.