generateWithOcrFromDocument

open override fun generateWithOcrFromDocument(document: Document, pdfConfig: PdfConfiguration, 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.

pdfConfig

the PDF configuration.

ocrConfig

the OCR configuration.


open override fun generateWithOcrFromDocument(document: Document, outputFile: File, pdfConfig: PdfConfiguration, 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.

outputFile

the output PDF file

pdfConfig

the PDF configuration.

ocrConfig

the OCR configuration.