generateWithOcrFromPages

abstract fun generateWithOcrFromPages(pages: List<Page>, pdfConfig: PdfConfiguration = PdfConfiguration.default(), ocrConfig: OcrEngine.OcrConfig = OcrEngine.OcrConfig()): File?

Deprecated

Use generateWithOcrFromDocument() instead

Performs OCR and creates sandwiched OCR PDF file (from given Page objects. Use the document image from a Page.) with provided languages.

Parameters

pages

list of Page objects.

pdfConfig

the PDF configuration

ocrConfig

the OCR configuration


abstract fun generateWithOcrFromPages(pages: List<Page>, outputFile: File, pdfConfig: PdfConfiguration = PdfConfiguration.default(), ocrConfig: OcrEngine.OcrConfig = OcrEngine.OcrConfig()): Boolean

Deprecated

Use generateWithOcrFromDocument() instead

Performs OCR and creates sandwiched OCR PDF file (from given Page objects. 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

ocrConfig

the OCR configuration