Construct a word list for a rectangular region.
buildWordListFromRect2([in] int page, [in] double x0, [in] double y0, [in] double x1, [in] double y1)
This function constructs a word list for a rectangular region of a page.

The rectangle is defined by two opposite corners: (x0, y0) and (x1, y1). The coordinates are in PDF coordinate space.

After building a word list, call getNumWords and getWord to access the words.

XpdfText holds a word list for one page or region at a time. If you call buildWordList or buildWordListFromRect2 again, the new word list will replace the previous one.

Word ordering within the word list is affected by the text extraction mode - see the "Setting parameters" section in the function list.

' make word list for (200,300)-(500,400) on page 1 pdf.buildWordListFromRect2 1, 200, 300, 500, 400