getWordBox
Get the bounding box of a word.
getWordBox([in] LONG wordHandle, [out] double *xMin, [out] double *yMin,
[out] double *xMax, [out] double *yMax)
This function returns the bounding box of a word (whose handle was obtained
with
getWord
).
The xMin
, yMin
, xMax
,
and yMax
coordinates are in a coordinate space that
places (0,0) at the top-left corner of the page and has 72 units per
inch (same coordinate system as used by extractTextFromRect
).
This function is identical to getWordBox2
except that it returns
points in a top-down coordinate space.
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)
getWordBox
buildWordList
getNumWords
getWord
getWordText
getWordLength
getWordFontName
getWordColor
getWordBox2
getWordCharBox
getWordCharBox2
getWordSpaceAfter
getWordFontSize
getWordFontIsFixedWidth
getWordFontIsSerif
getWordFontIsSymbolic
getWordFontIsItalic
getWordFontIsBold
getWordRotation
getWordCharPos
getWordCharLen