getWordSpaceAfter
Check for a space after a word.
getWordSpaceAfter([in] LONG wordHandle, [out, retval] VARIANT_BOOL *space)
This function returns true if there is a space after the specified
word (whose handle was obtained with
getWord
).
Words are usually split at spaces,
so getWordSpaceAfter
usually returns true. Some
situations where it can return false are:
- There is no space between a word and a following superscript or subscript.
- XpdfText splits words if the font, font size, or color changes.
- A hyphenated word at the end of a line will not have a space after it.
VB:
Dim fSize As Double
Dim xMin As Double, yMin As Double, xMax As Double, yMax As Double
fName = pdf.getWordFontName(word)
fSize = pdf.getWordFontSize(word)
bold = pdf.getWordFontIsBold(word)
italic = pdf.getWordFontIsItalic(word)
fixedWidth = pdf.getWordFontIsFixedWidth(word)
serif = pdf.getWordFontIsSerif(word)
symbolic = pdf.getWordFontIsSymbolic(word)
color = pdf.getWordColor(word)
pdf.getWordBox(word, xMin, yMin, xMax, yMax)
space = pdf.getWordSpaceAfter(word)
rot = pdf.getWordRotation(word)
buildWordList
getNumWords
getWord
getWordText
getWordLength
getWordFontName
getWordColor
getWordBox
getWordBox2
getWordCharBox
getWordCharBox2
getWordFontSize
getWordFontIsFixedWidth
getWordFontIsSerif
getWordFontIsSymbolic
getWordFontIsItalic
getWordFontIsBold
getWordRotation
getWordCharPos
getWordCharLen