Companion

object Companion

Functions

Link copied to clipboard
fun getPageCount(filePath: String, password: String): Int

Returns the number of pages in a document.

Link copied to clipboard

Gets the version of the SDK library.

Link copied to clipboard

Initializes the SDK library.

Link copied to clipboard
fun release()

Releases the SDK library.

Link copied to clipboard
fun setAIModel(modelPath: String, language: OCRLanguage): Int

Sets the Document AI model for OCR based on the provided file path and language.

Link copied to clipboard

Sets the OCR language of the SDK library.

Link copied to clipboard

Sets a callback function to track the progress of SDK operations.