pdfGetWordCharPos

Get the character position of a word.
int pdfGetWordCharPos(PDFWordHandle word)
XpdfText tracks the "character position", where character position i refers to the ith character drawn in the PDF content stream. The pdfGetWordCharPos function returns the character position of the first character in the word.

The pdfGetWordCharPos and pdfGetWordCharLen functions are primarily useful when generating or working with highlight files.

C:
int charPos, charLen; charPos = pdfGetWordCharPos(word); charLen = pdfGetWordCharLen(word);
pdfBuildWordList
pdfGetNumWords
pdfGetWord
pdfGetWordText
pdfGetWordLength
pdfGetWordFontName
pdfGetWordColor
pdfGetWordBox
pdfGetWordBox2
pdfGetWordCharBox
pdfGetWordCharBox2
pdfGetWordFontSize
pdfGetWordFontIsFixedWidth
pdfGetWordFontIsSerif
pdfGetWordFontIsSymbolic
pdfGetWordFontIsBold
pdfGetWordFontIsItalic
pdfGetWordRotation
pdfGetWordCharLen