Which activity should be used to retrieve individual pieces of data from a digital PDF using UI Automation?

A multiple-choice question is asking which activity should be used to retrieve individual pieces of data from a digital PDF using UI Automation, with four answer options provided. (Captioned by AI)

@nevesisabela963

The correct answer is:

Get Text

Explanation:

UI Automation is typically used to interact with applications’ UI elements, such as retrieving text or clicking buttons. If you are working with a digital PDF and need to extract specific data using UI Automation, Get Text is the most appropriate option, as it allows direct interaction with visible text elements on the screen.

Read PDF With OCR, Get OCR Text, and OCR Text Exists are primarily used when dealing with scanned or image-based PDFs where text recognition is necessary. However, for a digital PDF where text is already selectable or accessible (without needing OCR), the Get Text activity is more efficient and aligned with best practices.

Using Get Text in UI Automation avoids the overhead of OCR when dealing with a digital PDF, as OCR is usually only required when the text is not selectable or searchable directly.

LLM helped me to write this but it’s validated by me.

1 Like

@nevesisabela963

Ocr cannot work in background by default…so first 3 are ruled out

Coming to 4 it has a full text option which can work in background as well…from the dom structure it can get the data

Cheers

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.