PageFileStorage

open class PageFileStorage(pageStorageProcessor: DocumentPageStorageProcessor, val pageStorage: DocumentPageStorage, fileIOProcessor: FileIOProcessor)

Interaction class which could operate with Page files.

Constructors

Link copied to clipboard
constructor(pageStorageProcessor: DocumentPageStorageProcessor, pageStorage: DocumentPageStorage, fileIOProcessor: FileIOProcessor)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun getImage(imageFile: File, options: BitmapFactory.Options? = null): Bitmap?

Provides image Bitmap from provided File.

fun getImage(pageId: String, documentId: String, type: PageFileType, options: BitmapFactory.Options? = null): Bitmap?

Provides Bitmap image of type for given pageId.

Link copied to clipboard
fun getImageURI(pageId: String, documentId: String, type: PageFileType): Uri

Provides imageUri for given page type.

Link copied to clipboard
fun getPreviewImage(pageId: String, documentId: String, type: PageFileType, options: BitmapFactory.Options? = null): Bitmap?

Provides preview Bitmap image of type for given pageId.

Link copied to clipboard
fun getPreviewImageURI(pageId: String, documentId: String, type: PageFileType): Uri

Provides preview imageUri for given page type.