pdfBuildWordList

Construct a word list.
void pdfBuildWordList(PDFHandle pdf, int page)
This function constructs a word list for the specified page.

After building a word list, call pdfGetNumWords and pdfGetWord to access the words.

XpdfText holds a word list for one page or region at a time. If you call pdfBuildWordList or pdfBuildWordListFromRect2 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.

C:
/* make word list for page 1 */ pdfBuildWordList(pdf, 1);
pdfBuildWordListFromRect2
pdfGetNumWords
pdfGetPrimaryDirection
pdfGetWord