addPage

fun addPage(image: ByteArray): Page
fun addPage(image: Bitmap): Page

Adds original image in the storage, and returns pageId. This is an IO operation and is not recommended to execute in the UI thread.


fun addPage(imageUri: Uri): Page

Adds original image in the storage, and returns pageId. This is an IO operation and is not recommended to execute in the UI thread.

Parameters

imageUri

the file URI of the image to be added. Content URIs content:// are not supported.