generate With Ocr From Document
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.
pdf Config
the PDF configuration.
ocr Config
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.
output File
the output PDF file
pdf Config
the PDF configuration.
ocr Config
the OCR configuration.