ArrayList < Float [] > resultsForPages = FindTextInRectangle . findTextOnAllPages ( "/path/to/file.pdf" , "textToFind" );