generateWithOcrPagesFromDocument

open override fun generateWithOcrPagesFromDocument(document: Document, pdfConfig: PdfConfiguration, sourceOcrPages: List<Page>): 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.


open override fun generateWithOcrPagesFromDocument(document: Document, outputFile: File, pdfConfig: PdfConfiguration, sourceOcrPages: List<Page>): 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.