pdfGetWord

Get a word handle.
PDFWordHandle pdfGetWord(PDFHandle pdf, int idx)
This function returns an opaque handle (of type PDFWordHandle) for the idxth word on the word list constructed by the most recent call to pdfBuildWordList.

This handle can be passed to the various pdfGetWord... functions to retrieve information about the word.

C:
PDFWordHandle word; /* make word list for page 1 */ pdfBuildWordList(pdf, 1); for (i = 0; i < pdfGetNumWords(pdf); ++i) { word = pdfGetWord(pdf, i); ... }
pdfBuildWordList
pdfGetNumWords
pdfGetWordText
pdfGetWordLength
pdfGetWordFontName
pdfGetWordColor
pdfGetWordBox
pdfGetWordBox2
pdfGetWordCharBox
pdfGetWordCharBox2
pdfGetWordSpaceAfter
pdfGetWordFontSize
pdfGetWordFontIsFixedWidth
pdfGetWordFontIsSerif
pdfGetWordFontIsSymbolic
pdfGetWordFontIsItalic
pdfGetWordFontIsBold
pdfGetWordRotation
pdfGetWordCharPos
pdfGetWordCharLen