generateWithOcrPagesFromPages

abstract fun generateWithOcrPagesFromPages(pages: List<Page>, pdfConfig: PdfConfiguration = PdfConfiguration.default(), sourceOcrPages: List<Page> = emptyList()): File?

Deprecated

Use generateWithOcrPagesFromDocument() instead

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.


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

Deprecated

Use generateWithOcrPagesFromDocument() instead

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.