RPAAdvanced OCR
Advanced OCR - Get a table
Advanced OCR - Get a table
Gets the first occurrence of a table in an Advanced OCR result, filtering by the headers provided.
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.
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.
Table headers
Add all the headers the table must have to be found. The table is found when it contains all the headers entered (exact text).
Returns
Javascript code
js
actions["action-id"].exists // table exists? (Boolean)
actions["action-id"].moreOccurrences // are there more occurrences? (Boolean)
actions["action-id"].headers // table headers (List)
actions["action-id"].headersSize // header size (Number)
actions["action-id"].rows // table rows (List)
actions["action-id"].rowsCount // table rows count (Number)
actions["action-id"].cols // table columns (List)
actions["action-id"].colsCount // table columns count (Number)
actions["action-id"].page // page (Number)
Field selection
- exists — table exists? (Boolean)
- moreOccurrences — are there more occurrences? (Boolean)
- headers — table headers (List)
- headersSize — header size (Number)
- rows — table rows (List)
- rowsCount — table rows count (Number)
- cols — table columns (List)
- colsCount — table columns count (Number)
- page — page (Number)
Rules and Conditions
- The Analyze tables option must be enabled in the Advanced OCR - Analyze Document action.
- When there is more than one occurrence, the first one is returned; use the moreOccurrences return to know whether there are others.