generate

open override fun generate(imageFileUris: List<Uri>, sourceFilesEncrypted: Boolean, pdfConfig: PdfConfiguration): Result<File>

Generate PDF from given images Uris.

Return

Result.Success with generated PDF File if PDF was generated successfully, Result.Failure otherwise

Parameters

imageFileUris

list of source images uris

sourceFilesEncrypted

should be true if source files are encrypted with Scanbot SDK encryption mechanism

pdfConfig

extra PDF configuration


open override fun generate(imageFileUris: List<Uri>, outputFile: File, sourceFilesEncrypted: Boolean, pdfConfig: PdfConfiguration): Result<Unit>

Generate PDF from given images Uris.

Return

Result.Success if PDF was generated successfully, Result.Failure otherwise

Parameters

imageFileUris

list of source images uris

outputFile

target PDF file

sourceFilesEncrypted

should be true if source files are encrypted with Scanbot SDK encryption mechanism

pdfConfig

extra PDF configuration


open override fun generate(document: Document, pdfConfig: PdfConfiguration): Result<Unit>

Generate PDF from given Document.

Return

Result.Success if PDF was generated successfully, Result.Failure otherwise

Parameters

document

source document

pdfConfig

extra PDF configuration


open override fun generate(document: Document, outputFile: File, pdfConfig: PdfConfiguration): Result<Unit>

Generate PDF from given Document.

Return

Result.Success if PDF was generated successfully, Result.Failure otherwise

Parameters

document

source document

outputFile

target PDF file

pdfConfig

extra PDF configuration


open override fun generate(pages: List<LegacyPage>, pdfConfig: PdfConfiguration): Result<File>

Deprecated

Use generateFromDocument() instead

Generate PDF from given list of LegacyPage objects.

Return

generated PDF File

Parameters

pages

list of source pages

pdfConfig

extra PDF configuration


open override fun generate(pages: List<LegacyPage>, outputFile: File, pdfConfig: PdfConfiguration): Result<Unit>

Deprecated

Use generateFromDocument() instead

Generate PDF from given list of LegacyPage objects.

Return

Result.Success if PDF was generated successfully, Result.Failure otherwise

Parameters

pages

list of source pages

outputFile

target PDF file

pdfConfig

extra PDF configuration