Skip to content

Migration Guide: From 7.2 To 7.3

Web Component

Default Scenario

Starting from the release 7.3, the Web Component doesn't have a default scenario, so you need to set the scenario before starting the document processing. Otherwise, the operation fails with the MISSING_SCENARIO error.

See the example of creating the Web Component and setting the scenario:

window.RegulaDocumentSDK = new DocumentReaderService();

window.RegulaDocumentSDK.recognizerProcessParam = {
  processParam: {
    scenario: 'MrzAndLocate',
  },
};
window.RegulaDocumentSDK.imageProcessParam = {
  processParam: {
    scenario: 'MrzAndLocate',
  },
};

In the release 7.3, the content delivery network (CDN) link to the script with the Document Reader frontend component has changed.

If previously, to perform the integration of the Service or Processor component on the page you used this script tag:

<script src="https://unpkg.com/@regulaforensics/vp-frontend-document-components@latest/dist/main.js"></script>

Now, the tag with updated link looks like:

<script src="https://unpkg.com/@regulaforensics/vp-frontend-document-components@latest/dist/main.iife.js"></script>

For more details, see the Document Reader SDK Web Component documentation.