generateWithOcrFromUris

abstract fun generateWithOcrFromUris(imageFileUris: List<Uri>, sourceFilesEncrypted: Boolean = false, pdfConfig: PdfConfiguration = PdfConfiguration.default(), ocrConfig: OcrEngine.OcrConfig = OcrEngine.OcrConfig()): File?

Performs OCR and creates sandwiched OCR PDF file (from given image file URIs) with provided languages.

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

ocrConfig

the OCR configuration


abstract fun generateWithOcrFromUris(imageFileUris: List<Uri>, outputFile: File, sourceFilesEncrypted: Boolean = false, pdfConfig: PdfConfiguration = PdfConfiguration.default(), ocrConfig: OcrEngine.OcrConfig = OcrEngine.OcrConfig()): File?

Performs OCR and creates sandwiched OCR PDF file (from given image file URIs) with provided languages.

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

ocrConfig

the OCR configuration