addPageImagePath

abstract fun addPageImagePath(imagePath: String, sourceOcrPage: Page? = null, binarization: PageBinarization = PageBinarization.ENABLED_IF_BINARIZATION_FILTER_SET): Result<Page>

Deprecated

Use addPage(image: ImageRef) with image ref lazy load mode instead

Adds a page to the PDF document from an image file path. It is recommended to use addPage with ImageRef created in a lazy mode instead.

Parameters

imagePath

The file path of the image to be added as a page. If the file is encrypted, it is automatically decrypted with global encryption settings.

binarization

The binarization mode to be applied to the image.