generate With Ocr From Document
abstract fun generateWithOcrFromDocument(document: Document, pdfConfig: PdfConfiguration = PdfConfiguration.default(), ocrConfig: OcrEngine.OcrConfig = OcrEngine.OcrConfig()): Boolean
Performs OCR and creates sandwiched OCR PDF file (from given Document. Use the document image from a io.scanbot.sdk.docprocessing.Page.) with provided languages.
Parameters
document
the document to perform OCR on and create a PDF from.
pdf Config
the PDF configuration.
ocr Config
the OCR configuration.
abstract fun generateWithOcrFromDocument(document: Document, outputFile: File, pdfConfig: PdfConfiguration = PdfConfiguration.default(), ocrConfig: OcrEngine.OcrConfig = OcrEngine.OcrConfig()): Boolean
Performs OCR and creates sandwiched OCR PDF file (from given Document. Use the document image from a io.scanbot.sdk.docprocessing.Page.) with provided languages.
Return
true if PDF was generated successfully, false otherwise
Parameters
document
the document to perform OCR on and create a PDF from.
output File
the output PDF file
pdf Config
the PDF configuration.
ocr Config
the OCR configuration.