Class PDFGenerator

  • public abstract class PDFGenerator
    extends java.lang.Object
    Generates PDF file from scans.
    • Constructor Detail

      • PDFGenerator

        public PDFGenerator()
    • Method Detail

      • generatePDF

        public abstract PDFGeneratorError generatePDF​(java.lang.String outputFile)
        Generates a PDF at the given output location.
        a PDFGeneratorError enum object. If the generation was successful, this object will be set to the success case.
      • createWithDocument

        public static PDFGenerator createWithDocument​(PDFDocument document,
                                                      PDFGeneratorConfiguration configuration,
                                                      PDFImageProcessor processor,
                                                      Logger logger)
        Instantiate a new PDF generator
        document - A PDFDocument object that describes the structure of the PDF file to construct. It contains all the pages and the metadata that will be set in the PDF file.
        configuration - The configuration of the generator
        processor - A processor called for every page of the document. You can use this to resize your scans, add a watermark etc. when building a PDF file.
        logger - An injected logger