generate From Image Refs
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.*Error otherwise.
Parameters
images
list of source ImageRefs
pdf Config
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.*Error otherwise.
Parameters
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.*Error otherwise.
Parameters
images
list of source ImageRefs
pdf Config
the PDF configuration
source Ocr Pages
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.*Error otherwise