Package com.geniusscansdk.pdf
Class PDFGenerator
- java.lang.Object
-
- com.geniusscansdk.pdf.PDFGenerator
-
public abstract class PDFGenerator extends java.lang.Object
Generates PDF file from scans.
-
-
Constructor Summary
Constructors Constructor Description PDFGenerator()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static PDFGenerator
createWithDocument(PDFDocument document, PDFGeneratorConfiguration configuration, PDFImageProcessor processor, Logger logger)
Instantiate a new PDF generatorabstract PDFGeneratorError
generatePDF(java.lang.String outputFile)
Generates a PDF at the given output location.
-
-
-
Method Detail
-
generatePDF
public abstract PDFGeneratorError generatePDF(java.lang.String outputFile)
Generates a PDF at the given output location.- Returns:
- 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- Parameters:
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 generatorprocessor
- 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
-
-