getWordCharPos

Get the character position of a word.
getWordCharPos([in] LONG wordHandle, [out, retval] int *pos)
XpdfText tracks the "character position", where character position i refers to the ith character drawn in the PDF content stream. The getWordCharPos function returns the character position of the first character in the word.

The getWordCharPos and getWordCharLen functions are primarily useful when generating or working with highlight files.

VB:
charPos = pdf.getWordCharPos(word) charLen = pdf.getWordCharLen(word)
buildWordList
getNumWords
getWord
getWordText
getWordLength
getWordFontName
getWordColor
getWordBox
getWordBox2
getWordCharBox
getWordCharBox2
getWordSpaceAfter
getWordFontSize
getWordFontIsFixedWidth
getWordFontIsSerif
getWordFontIsSymbolic
getWordFontIsBold
getWordFontIsItalic
getWordRotation
getWordCharLen