Skip to content

Initialization

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);
});
Back to top