Function.Automation.PDF.TextSearch

From GAB Help
Jump to: navigation, search

This function searches the keyword in PDF object and returns a delimited ("*!*") string of pages that contain the keyword.

Syntax

Function.Automation.PDF.TextSearch(PDF Reference name [string], search text [string], return [string])

Function.Automation.PDF.TextSearch(PDF Reference name [string], search text [string], [optional exactMatch] [boolean], return [string])

Arguments

PDF Reference name

Name of the PDF Reference opened with Function.Automation.PDF.Open.

Text

Text to be searched

Return

String

Examples

Function.Automation.PDF.Open("pdfsample", "C:\myPDFTest.pdf")
Function.Automation.PDF.TextSearch("pdfsample", "myCoolText", V.Local.Return)
Function.Intrinsic.UI.Msgbox(V.Local.Return) 'non return
Function.Automation.PDF.Close("pdfsample")

Remarks

  • If no match was found, it returns "***NO RETURN***".