add Page JPEG
open override fun addPageJPEG(jpeg: ByteArray, sourceOcrPage: Page?, binarization: PageBinarization): Result<Page>
Deprecated
Use addPage(image: ImageRef) with image ref lazy load mode instead
Adds a page to the PDF document from a JPEG byte array. It is recommended to use addPage with ImageRef created in a lazy mode instead.
Parameters
jpeg
The JPEG byte array of the image to be added as a page. The byte array must not be encrypteed
binarization
The binarization mode to be applied to the image.