Contents

Get Text from PDF

Official Content

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.

GetTextFromPDF

Gets the text from the PDF in the given path

Parameters

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

Example

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

Availability

This command is available since GeneXus 17 upgrade 10.