This example will show how the ImageTemplateReceiver can be used to generate check images filled with synthetic data.
Domain and Attribute Initial Setup
A Check Domain has been created within a Project Version. The ImageTemplateReceiver has been assigned to the Check Domain, and a Scenario has been created.
The Check Domain contains the following Attributes and assigned Generators:
- fullName = FullNameGen
- address = AddressGen
- city = USStateCapitalGen
- state = USStateAbbreviationGen
- zip = USStateCapitalZipCodeGen
- fullAddress = ConcatGen (combines city/state/zip to look like this "Chicago, IL 60018")
- date = FlexibleDateRangeGen
- payee = CompanyNameGen
- payerSignature = ReferenceGen (references the value generated by the fullName Attribute)
- for = ListGen (e.g. Taxes, Catering, N/A, Party, Supplies)
- numberDollarAmount = RandomMoneyGen
- textDollarAmount = NumberToWordsGen (references NumberDollarAmount Attribute generated value)
fullAddress Attribute - Generator Configuration
date Attribute - Generator Configuration
for Attribute - Generator Configuration
payerSignature Attribute - Generator Configuration
numberDollarAmount Attribute - Generator Configuration
textDollarAmount Attribute - Generator Configuration
Preview of Generated Data
Step 1: Configure Receiver Parameters
Next, make any needed changes to the ImageTemplateReceiver's Parameters. Select the ImageTemplateReceiver within the Domain Dashboard. Make any required changes and click the Save button.
For this example, the following Parameters have been changed:
- subDir Parameter - All generated images will be placed in an images directory.
Step 2: Upload the Check Image
- Click on the Manage Image Template button to access the Management Dashboard.
Step 3: Add Attributes to the Template Image
- Click on the Attribute Name within the Attribute's Pane to select it.
Step 4: Generate the Images using GenRocket Runtime
Below is a sample check image created by the ImageTemplateReceiver:
Additional Reading - Use Case 2
The ImageTemplateReceiver also has gr Property Keys. These can be used to set the Property Key (e.g., background, fontFamily, fontSize, fontColor) to an Attribute-generated Value.
Use case 2 will show how to generate checks with different signature colors (red, blue, black). To see the complete use case, please see ImageTemplateReceiver:Generate Checks with Different Signature Colors.