Initialization

This page covers the description of the initialization process

The DocumentReader initialization works fully offline. It simply use license file, which you can get here: licensing.regulaforensics.com. You should add the regula.license file to your project.

ByteData byteData = await rootBundle.load("assets/regula.license");
‚Äč
DocumentReader.initializeReader(base64.encode(byteData.buffer
.asUint8List(byteData.offsetInBytes, byteData.lengthInBytes)))
.then((s) {
print(s);
}).catchError((Object error) {
print((error as PlatformException).message);
});