<< Click to Display Table of Contents >> Navigation: OCR Module > Appendix > Template Files |
Template files are plain text files that contain input field information. It is important to follow the format detailed below, as doing otherwise will return an error when they are processed.
Please note the following with regard to structure:
•Variables are shown in parentheses with their expected type.
•Begin and end field text are shown in bold.
•Region bounding box values are in PDF coordinates. They can be in floating point format or decimal types.
•PDF coordinates are in points (1/72 inch). The origin of PDF coordinates (0,0) is the bottom left corner of the page.
•The location moves right when the X value is increased and up when the Y value is increased.
•The OCR_SaveTemplateW function is a simple method through which template files can be created.
•The string NOT_DEFINED must be used to denote blank string input fields. Ensure that there is no additional punctuation and that it is located on a separate line.
(int: Total number of fields)
start_region
(int: page_number)
(float LEFT) (float BOTTOM) (float RIGHT) (float TOP)
(STRING/LINE: Blacklist)
(STRING/LINE: Whitelist)
(STRING/LINE: Label)
end_region
start_region
(...).
end_region
(...)