RPAAdvanced OCR
Advanced OCR - Get line
Advanced OCR - Get line
Gets the first occurrence of a specific line in an Advanced OCR result.
Options
Document analysis
Select the Advanced OCR - Analyze Document action whose result will be used. When this action is inside an Advanced OCR - For each page action, the document of that action is used.
Line content (partial or complete)
Enter the text (or part of it) that the line must contain.
Page (optional)
Enter the number of the page to search in. Leave it empty to search every page. Inside an Advanced OCR - For each page action, the current page of that action is used.
Returns
Javascript code
js
actions["action-id"].exists // line exists? (Boolean)
actions["action-id"].moreOccurrences // are there more occurrences? (Boolean)
actions["action-id"].lineContent // line content (Text)
actions["action-id"].page // page (Number)
Field selection
- exists — line exists? (Boolean)
- moreOccurrences — are there more occurrences? (Boolean)
- lineContent — line content (Text)
- page — page (Number)
Rules and Conditions
- The Advanced OCR - Analyze Document action must be run before this one.
- The search is partial (the text entered must be contained in the content) and is case-sensitive.
- When there is more than one occurrence, the first one is returned; use the moreOccurrences return to know whether there are others.