generateWithOcrPagesFromUris

open override fun generateWithOcrPagesFromUris(imageFileUris: List<Uri>, sourceFilesEncrypted: Boolean, pdfConfig: PdfConfiguration, sourceOcrPages: List<Page>): File?

Creates sandwiched OCR PDF file from given image file URIs and provided source list of io.scanbot.sdk.ocr.model.Page OCR data.

Return

generated PDF File

Parameters

imageFileUris

list of image file URIs

sourceFilesEncrypted

if true, the image files are encrypted and will be decrypted before OCR

pdfConfig

the PDF configuration

sourceOcrPages

the source list of io.scanbot.sdk.ocr.model.Page OCR data.


open override fun generateWithOcrPagesFromUris(imageFileUris: List<Uri>, outputFile: File, sourceFilesEncrypted: Boolean, pdfConfig: PdfConfiguration, sourceOcrPages: List<Page>): File?

Creates sandwiched OCR PDF file from given image file URIs and provided source list of io.scanbot.sdk.ocr.model.Page OCR data.

Return

true if PDF was generated successfully, false otherwise

Parameters

imageFileUris

list of image file URIs

outputFile

the output PDF file

sourceFilesEncrypted

if true, the image files are encrypted and will be decrypted before OCR

pdfConfig

the PDF configuration

sourceOcrPages

the source list of io.scanbot.sdk.ocr.model.Page OCR data