Class PdfFile

java.lang.Object
com.lowagie.rups.model.PdfFile

public class PdfFile extends Object
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 Details

    • directory

      protected File directory
      The directory where the file can be found (if the PDF was passed as a file).
    • filename

      protected String filename
      The original filename.
    • reader

      protected PdfReader reader
      The PdfReader object.
    • permissions

      protected Permissions permissions
      The file permissions
  • Constructor Details

  • Method Details

    • readFile

      protected void readFile(RandomAccessFileOrArray pdf) throws IOException, DocumentException
      Does the actual reading of the file into PdfReader and PDFFile.
      Parameters:
      pdf - a Random Access File or Array
      Throws:
      IOException - thrown when an I/O operation goes wrong
      DocumentException - thrown when something goes wrong with a Document
    • getPdfReader

      public PdfReader getPdfReader()
      Getter for iText's PdfReader object.
      Returns:
      a PdfReader object