Class ExtractedPDF


  • public class ExtractedPDF
    extends Object
    An extracted sub-PDF.
    • Constructor Detail

      • ExtractedPDF

        public ExtractedPDF​(org.apache.pdfbox.pdmodel.PDDocument pdf,
                            String filename)
        Parameters:
        pdf - PDF wrapper object.
        filename - Name of the extracted file.
    • Method Detail

      • writeToFile

        public void writeToFile​(String outputPath)
                         throws IOException
        Write the PDF to a file.
        Parameters:
        outputPath - the output directory (must exist).
        Throws:
        IOException - Throws if the file can't be accessed.
      • getPdf

        public org.apache.pdfbox.pdmodel.PDDocument getPdf()
      • getFilename

        public String getFilename()