Helper Class
class Helper : ScanningSdkLibrary.Instance
A minimal Instance whose only job is to guarantee the native library is loaded.
Construct one when you need a native-backed helper without holding a document open.
Constructors
Helper
constructor()
Functions
close
@Synchronized open override fun close()
Releases the native memory held by this instance immediately instead of waiting for the garbage collector.
makeTransform
@JvmOverloads external fun makeTransform(orientation: ScanOrientation, width: Int = 0, height: Int = 0): Matrix
Builds the transform matrix that applies an EXIF orientation to a bitmap.
unpackLanguage
external fun unpackLanguage(source: InputStream, destination: OutputStream)
Extracts a packed OCR language file, writing the recognition data to a destination stream.