add

fun add(image: ByteArray): String
fun add(image: Bitmap): String

Adds original image in the storage, and returns pageId. Creates previews, and doesn't detect contours.


fun add(image: ByteArray, pageImageSource: PageImageSource): String
fun add(image: Bitmap, pageImageSource: PageImageSource): String

Adds original image in the storage, and returns pageId. Creates previews, and doesn't detect contours.

Parameters

image

image to import

pageImageSource

the source of the image


fun add(image: ByteArray, configuration: PageStorageProcessor.Configuration = PageStorageProcessor.Configuration.DEFAULT()): Page

Adds image in the storage, does not create document, and returns Page. Creates previews.


fun add(image: Bitmap, configuration: PageStorageProcessor.Configuration = PageStorageProcessor.Configuration.DEFAULT()): Page

Adds image in the storage, does not create document and returns Page. Creates previews.