generate With Ocr Pages From Pages
open override fun generateWithOcrPagesFromPages(pages: List<Page>, pdfConfig: PdfConfiguration, sourceOcrPages: List<Page>): File?
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.
pdf Config
the PDF configuration.
source Ocr Pages
the source list of io.scanbot.sdk.ocr.model.Page OCR data.
open override fun generateWithOcrPagesFromPages(pages: List<Page>, outputFile: File, pdfConfig: PdfConfiguration, sourceOcrPages: List<Page>): Boolean
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.
output File
the output PDF file
pdf Config
the PDF configuration
source Ocr Pages
the source list of io.scanbot.sdk.ocr.model.Page OCR data.