generateWithOcrPagesFromPages

open override fun generateWithOcrPagesFromPages(pages: List<Page>, pdfConfig: PdfConfiguration, sourceOcrPages: List<Page>): File?

Creates sandwiched OCR PDF file from given Page objects and provided source list of io.scanbot.sdk.ocr.model.Page OCR data. Use the document image from a Page. with provided languages.

Parameters

pages

list of Page objects.

pdfConfig

the PDF configuration.

sourceOcrPages

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


open override fun generateWithOcrPagesFromPages(pages: List<Page>, outputFile: File, pdfConfig: PdfConfiguration, sourceOcrPages: List<Page>): Boolean

Creates sandwiched OCR PDF file from given Page objects and provided source list of io.scanbot.sdk.ocr.model.Page OCR data. Use the document image from a Page. with provided languages.

Return

true if PDF was generated successfully, false otherwise

Parameters

pages

list of Page objects.

outputFile

the output PDF file

pdfConfig

the PDF configuration

sourceOcrPages

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