Retrieving and Processing PDF Form Fields in a Flow

Last Updated: 08/11/2016 Introduced in Verision: 2.0

PDF form field values can be extracted and used as variables in a flow using the Get PDF Form Fields component. This component is found in the Toolbox panel under the Data > PDF category.

 

Example

In this example, a PDF form containing a bank account application is introduced to a flow and its data extracted and presented on a form for review. The PDF form is configured as follows:
 
PDFForm.png
 
The example assumes a form displaying the PDF values already exists. It simply shows the bank account request data in textboxes and labels for review:
 formPreview
 
 
Begin by navigating to a Designer Folder and creating a new flow.
 
In the Flow Designer start-up window, expand All Steps [Catalog] > Data > PDF . Select a Get PDF Form Fields component and click Add to add it into the workspace. 
 
 flowStarts
 
Next, add the form to the workspace following the Get Get PDF Form Fields step. The form in this example is found under Forms [Interaction] > [Current Folder]. Connect the Get PDF Form Fields step to the form.
 
Click on the Get Get PDF Form Fields step. Under Configuration, click the Browse button for PDF File Example. Browse to and select one of the following: (1) the PDF form template file, or (2) the actual PDF containing the data to retrieve and use in the flow. Introducing one of these files enables the step to recognize the form data; a string variable will be created for each piece of information detected.
 fieldNamesRetrieved
 
 
Next, introduce the file containing the data. To browse to the file, under Inputs, select Constant as the mapping type. Click the Value field Browse button and browse to and select the file.
 inputsPDFfile
 
 
Lastly, map the output data from the Get PDF Form Fields step to the form. Click on the Display PDF Info form and select the Show Mapping Editor option that appears from its Actions menu.
 showMappingEditor
 
 
Map the PDF form fields to the input fields on the form by clicking on the output on the left and dragging the connector to the corresponding form field on the right.
 mappingToForm
 
 
Click OK. Connect the output paths from the form. The flow is complete and ready to test.
 flowCompleted
 
 
Click the Debug Flow link, or the Test Flow link in Decisions 3.5 and higher, above the workspace. The form displays the information from the PDF file for review.
 debugResult
 
 

Additional Resources