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.
1
window.resolveLocalFileSystemURL(
2
cordova.file.applicationDirectory + "www/regula.license",
3
function (fileEntry) {
4
fileEntry.file(function (file) {
5
var reader = new FileReader();
6
reader.onloadend = function (e) {
7
var license = this.result;
8
DocumentReader.initializeReader(
9
license,
10
function (message) {
11
console.log(message);
12
},
13
function (error) {
14
console.log(error);
15
}
16
);
17
}
18
reader.readAsArrayBuffer(file);
19
});
20
},
21
function (e) {
22
console.log("Error");
23
}
24
);
Copied!
Last modified 4d ago
Copy link