generate With Ocr Pages From Pages
abstract fun generateWithOcrPagesFromPages(pages: List<Page>, pdfConfig: PdfConfiguration = PdfConfiguration.default(), sourceOcrPages: List<Page> = emptyList()): File?
Deprecated
Use generateWithOcrPagesFromDocument() instead
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.
abstract fun generateWithOcrPagesFromPages(pages: List<Page>, outputFile: File, pdfConfig: PdfConfiguration = PdfConfiguration.default(), sourceOcrPages: List<Page> = emptyList()): Boolean
Deprecated
Use generateWithOcrPagesFromDocument() instead
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.