PDF Visa Upload and Processing

Early Access

TrustX provides functionality to upload a Visa document as a PDF file and have those documents processed using the ID Document processor. This provides the same flexibility as a standard document capture process where details may be extracted and used as part of a Process Definition and viewed within the Backoffice as any normal captured document.

This guide will describe a use case where a Visa is uploaded as a PDF file via the Backoffice Process Designer using the supported 'PDF ID Upload v1' activity and 'ID Document Processor 8.2' activities.

This functionality is in Early Access and is currently limited to a subset of Visa documents that have been tested for compatibility:

  • Chinese Visa Document
  • Brazilian Visa Document

Configure the Custom Page

Before configuring the Process Definition, a Custom Page will be created that will be used to handle request the end-user to upload a PDF file of the Visa document.

  1. In the Backoffice application, navigate to Integration Hub > Custom Pages using the right-side vertical navigation menu.
  2. From the Custom Pages landing page, click the 'New Custom Page' button.
  3. Upload the Zip bundle containing all assets of the Custom Page. Below is an example Custom Page that includes a HTML and Javascript file.

Example index.html:

HTML
Copy

Example Javascript:

Javascript
Copy
  1. From the example above, the variable _presignedUrl and _headers contain the Output Variable from the PDF ID Upload v1 activity. These values will be configured in the Custom Page activity.
  2. Once the Custom Page is configured, click 'Save & Deploy'.

Configure the Process Definition

The Process Definition in this example describes a simple PDF upload flow where a Visa document is uploaded and processed by the ID Document Processor (v8.2).

  1. Create a new Process Definition by navigating to the Process Definitions page found on the vertical menu of the Backoffice.
  2. Click the 'New Process Definition' button on the top right of the Process Definitions landing page.
  3. Add a Start event to the Process Definition using the 'Create Start Event' option from the Process Designer pallet.
  4. Add a 'Define Document Type V1' activity to the designer and connect it to the Start event. This activity will set the document type of the ID document that will be uploaded during the process. It contains the following input parameters:
Parameter NameTypeDescription
Acceptable Countrieslist[string]A list of accepted countries.
Country CodestringThe two-letter country code of the document.
Document KeystringThe two-letter country code of the document.
Document TypestringThe accepted document type.
  1. Add a 'PDF ID Upload v1' activity to the designer and connect it to the 'Define Document Type V1' activity using a sequence flow arrow. This activity will enable TrustX to handle the upload of a PDF file as an ID document. This activity features the following configurable input parameters:
Parameter NameTypeDescription
Document Keystringthe unique ID of the document. This should match the Document Key defined in the 'Define Document Type V1' activity.
FormatstringThe format of the file that will be uploaded. Currently only PDF is supported.
Output VariablestringThe Output Variable will provide a URL that can be used to upload the PDF document. This is used in the Custom Page url variable defined in the Configure the Custom Page section above.
  1. Add a 'Custom Page V3' activity to the Process Designer and connect to the 'PDF ID Upload v1' activity. This activity will be configured to show the Custom Page defined in the Configure the Custom Page section above.

  2. On the 'Custom Page V3' activity, configure the following input parameters by selecting the activity in the designer:

    1. Custom Page Name - The name of the Custom Page defined in the section above.
    2. Session Data - Session Data variables that will be sent to the Custom Page:
      1. (key: uploadURL, value: ${uploadURL})
      2. (key: uploadURL_headers, value: ${uploadURL_headers})
  3. Add an 'ID Document Processor 8.2' activity to the designer and connect it to the 'Extract PDF Page v1' activity using a sequence flow arrow. This activity supports the following configurable input parameters:

Parameter Description Type Default
Already Cropped When enabled, will signal to the document processer that the document image is already cropped. NOTE: For PDF upload, this parameter must be set to `${true}` boolean false
Document Key The identifier of the document. string doc1
Error navigation screen The screen the user will be navigated to in case of an error event occurs. string instructions
Exception Max Attempts Exception for max attempts. string ${true}
Fields to assign original values Enables customers to define a list of original values to be returned by the processor. list[string]
Image Profile The profile of the image; Cropped or Uncropped. string Cropped
Max Attempts The maximum number of allowed attempts. integer ${3}
Measure System The unit of measurement to be used. Possible values are METRIC or IMPERIAL. string METRIC
Original Response Enabled If set to true, the response of additional checks will be returned (eg. Chip data). If false, additional checks will not be returned. string ${false}
Scenario Set the type of security check to perform where FullAuth will perform additional security checks. Possible values include FullAuth, FullProcess or DocType. string ${FullProcess}
  1. Once configured, add a 'Create End Event' to the designer and connect the 'ID Document Processor 8.2' activity using a sequence flow arrow. This will conclude the
  2. The completed Process Definition will appear as follows:
  1. Once all the configurations are finalized, click the 'Save & Deploy' button to complete the Process Definition.

Testing the Process Definition

The Process Definition can be tested by creating a Process Token in the Backoffice application.

  1. From the Backoffice, find Process Definitions > Process Tokens.
  2. From the Process Tokens landing page, click the 'New Process Token' button.
  3. A pop-up will appear where details such as the Process Definition, Process Token Name, and Additional Parameters can be defined.
  1. Once all details are defined, click the 'Create Token' button.
  2. Open the token URL to start the process. This will present the end-user with a Custom Page where a PDF file containing a scan of an ID document can be presented.
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard