How to add the SDK to the project?

This page covers the ways of adding SDK to your project

Document Reader libraries are available on npm.

First of all, install the Ionic wrapper:

$ ionic cordova plugin add @regulaforensics/ionic-native-document-reader

Install API library, simply running the following command:

$ ionic cordova plugin add @regulaforensics/cordova-plugin-document-reader-api --variable CAMERA_USAGE_DESCRIPTION="To take photo" --variable READ_EXTERNAL_STORAGE="To choose photo"

And then add one of the Core libraries depend on the functionality that you wish and the license capabilities:

  • Install bounds library edition:

$ ionic cordova plugin add @regulaforensics/cordova-plugin-document-reader-core-bounds
  • Install mrz library edition:

$ ionic cordova plugin add @regulaforensics/cordova-plugin-document-reader-core-mrz
  • Install mrzrfid library edition:

$ ionic cordova plugin add @regulaforensics/cordova-plugin-document-reader-core-mrzrfid
  • Install barcode library edition:

$ ionic cordova plugin add @regulaforensics/cordova-plugin-document-reader-core-barcode
  • Install barcodemrz library edition:

$ ionic cordova plugin add @regulaforensics/cordova-plugin-document-reader-core-barcodemrz
  • Install barcodemrzrfid library edition:

$ ionic cordova plugin add @regulaforensics/cordova-plugin-document-reader-core-barcodemrzrfid
  • Install doctype library edition:

$ ionic cordova plugin add @regulaforensics/cordova-plugin-document-reader-core-doctype
  • Install ocrandmrz library edition:

$ ionic cordova plugin add @regulaforensics/cordova-plugin-document-reader-core-ocrandmrz
  • Install ocrandmrzrfid library edition:

$ ionic cordova plugin add @regulaforensics/cordova-plugin-document-reader-core-ocrandmrzrfid
  • Install full library edition:

$ ionic cordova plugin add @regulaforensics/cordova-plugin-document-reader-core-full
  • Install fullrfid library edition:

$ ionic cordova plugin add @regulaforensics/cordova-plugin-document-reader-core-fullrfid