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