generateFromImageRefs

open override fun generateFromImageRefs(images: List<ImageRef>, pdfConfig: PdfConfiguration): Result<File>

Generate PDF from given images ImageRefs.

Return

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

Parameters

images

list of source ImageRefs

pdfConfig

extra PDF configuration


open override fun generateFromImageRefs(images: List<ImageRef>, outputFile: File, pdfConfig: PdfConfiguration): Result<Unit>

Generate PDF from given images ImageRefs.

Return

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

Parameters

images

list of source ImageRefs

outputFile

target PDF file

pdfConfig

extra PDF configuration


open override fun generateFromImageRefs(images: List<ImageRef>, pdfConfig: PdfConfiguration, sourceOcrPages: List<Page>): Result<File>

Creates sandwiched OCR PDF file from given ImageRefs and provided source list of Page OCR data.

Return

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

Parameters

images

list of source ImageRefs

pdfConfig

the PDF configuration

sourceOcrPages

the source list of Page OCR data


open override fun generateFromImageRefs(images: List<ImageRef>, outputFile: File, pdfConfig: PdfConfiguration, sourceOcrPages: List<Page>): Result<Unit>

Creates sandwiched OCR PDF file from given ImageRefs and provided source list of Page OCR data.

Return

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

Parameters

images

list of source ImageRefs

outputFile

the output PDF file

pdfConfig

the PDF configuration

sourceOcrPages

the source list of Page OCR data