generateWithOcrFromPages

open override fun generateWithOcrFromPages(pages: List<Page>, pdfConfig: PdfConfiguration, ocrConfig: OcrEngine.OcrConfig): File?

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


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

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