Skip to main content
Roberty Studio
RPAAdvanced OCR

Advanced OCR - For each line

Advanced OCR - For each line

Loops over every line of text found in an Advanced OCR result, running a block of actions for each line.


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 be iterated. Inside an Advanced OCR - For each page action, the current page of that action is used.

Returns​

Javascript code​

js
actions["action-id"].line // line content (Text)
actions["action-id"].page // page (Number)

Field selection​

  • line — line content (Text)
  • page — page (Number)

Rules and Conditions​

  • The Advanced OCR - Analyze Document action must be run before this one.
  • Outside an Advanced OCR - For each page action, enter the page: without it, no item is iterated.