generate With Ocr From Pages
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.
pdf Config
the PDF configuration
ocr Config
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.
output File
the output PDF file
pdf Config
the PDF configuration
ocr Config
the OCR configuration