Currently, to check the license expiry date, we would need to initialise the Regula.DocumentReader first; however, the initialisation will fail when the license is expired. This disallow us from knowing whether the failure is caused by expired license and show appropriate error message. There is a not so reliable way of checking if the error caught in the errorCallback (a string) .includes("invalid date"). Are there any better alternatives like error codes or something?
Currently, to check the license expiry date, we would need to initialise the
Regula.DocumentReaderfirst; however, the initialisation will fail when the license is expired. This disallow us from knowing whether the failure is caused by expired license and show appropriate error message. There is a not so reliable way of checking if theerrorcaught in theerrorCallback(astring).includes("invalid date"). Are there any better alternatives like error codes or something?