getWordCharLen

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

(The length returned by getWordCharLen may be different from both the length of the string returned by getWordText and the value returned by getWordLength, depending on the PDF font encoding and the current text encoding.)

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

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