Skip to main content
Roberty Studio
RPAAdvanced OCR

Advanced OCR - Analyze Document

Advanced OCR - Analyze Document

Performs advanced character recognition (OCR) on a document, extracting words, lines, forms, tables and answers to questions. This must be the first action executed before using any other Advanced OCR action.


Options​

File path​

Enter the full path of the file (image or PDF) to be analyzed by the OCR.

Pages to work on​

For PDF files, enter the pages to be processed, separated by commas, with ranges allowed. Example: 1, 2, 5-10. Leave it empty to process every page.

Analyze forms​

Enable it to extract the key-value pairs of forms present in the document.

Analyze tables​

Enable it to extract the tables of the document.

Analyze questions​

Enable it to ask questions about the document and get the answers found by the OCR.

Waiting time​

Enter the maximum time, in seconds, to wait for the analysis to finish. The default is 120.

Questions to be answered​

Available when Analyze questions is enabled. Enter the questions the OCR must answer based on the content of the document.

Returns​

Javascript code​

js
actions["action-id"].content // content of the document analyzed by OCR (Text)
actions["action-id"].words // words found by OCR (List)
actions["action-id"].lines // lines of words found by OCR (List)
actions["action-id"].forms // forms found by OCR (List)
actions["action-id"].tables // tables found by OCR (List)
actions["action-id"].queries // answers found by OCR referring to the questions (List)

Field selection​

  • content — content of the document analyzed by OCR (Text)
  • words — words found by OCR (List)
  • lines — lines of words found by OCR (List)
  • forms — forms found by OCR (List)
  • tables — tables found by OCR (List)
  • queries — answers found by OCR referring to the questions (List)

Rules and Conditions​

  • The File path field is required.
  • Words, lines and the document content are always extracted; forms, tables and answers to questions are only returned when the corresponding option is enabled.
  • If the analysis does not finish within the waiting time, the action raises an error.
  • The ID of this action is used by the other Advanced OCR actions.