generateWithOcrPagesFromDocument

abstract fun generateWithOcrPagesFromDocument(document: Document, pdfConfig: PdfConfiguration = PdfConfiguration.default(), sourceOcrPages: List<Page> = emptyList()): Boolean

Creates sandwiched OCR PDF file from given Document and provided source list of io.scanbot.sdk.ocr.model.Page OCR data. 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.

sourceOcrPages

the source list of io.scanbot.sdk.ocr.model.Page OCR data.


abstract fun generateWithOcrPagesFromDocument(document: Document, outputFile: File, pdfConfig: PdfConfiguration = PdfConfiguration.default(), sourceOcrPages: List<Page> = emptyList()): Boolean

Creates sandwiched OCR PDF file from given Document and provided source list of io.scanbot.sdk.ocr.model.Page OCR data. 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.

sourceOcrPages

the source list of io.scanbot.sdk.ocr.model.Page OCR data.