GXtest UI Commands - Get Text from PDF

Official Content
This documentation is valid for:

Extracting the text content of a PDF can be useful if your application generates these documents.

Typically is used combined with assertions to let GXtest check for expected content within the document. Take into account that this command retrieves all the text inside a PDF file, you must extract and process the particular piece of information you want to validate. Regular expressions are a good asset to do such tasks.


Gets the text from the PDF in the given path.


&myVar = &driver.GetTextFromPDF("C:\mypdf.pdf")


Is a variable based on the VarChar data type.

   Is a variable based on the Webdriver, GXtest external object.


  • Path: the path of the PDF to extract text from.


Since GeneXus 17 Upgrade 10.