pdfGetWordCharBox2

Get the bounding box of a character in a word.
void pdfGetWordCharBox2(PDFHandle pdf, PDFWordHandle word, int charIdx, double *xMin, double *yMin, double *xMax, double *yMax)
This function returns the bounding box of the charIdxth character in a word (whose handle was obtained with pdfGetWord).

The xMin, yMin, xMax, and yMax coordinates are in PDF coordinate space.

This function works on Unicode characters (used internally in XpdfText). The pdfGetWordLength function returns the number of Unicode characters.

This function is identical to pdfGetWordCharBox except that it returns points in PDF coordinate space.

C:
PDFWordHandle word; char *text; int length; pdfBuildWordList(pdf, 1); for (i = 0; i < pdfGetNumWords(pdf); ++i) { word = pdfGetWord(pdf, i); for (j = 0; j < pdfGetWordLength(word); ++j) { pdfGetWordCharBox2(pdf, word, i, &xMin, &yMin, &xMax, &yMax); ... } }
pdfGetWordCharBox
pdfBuildWordList
pdfGetNumWords
pdfGetWord
pdfGetWordText
pdfGetWordLength
pdfGetWordFontName
pdfGetWordColor
pdfGetWordBox
pdfGetWordBox2
pdfGetWordFontSize
pdfGetWordFontIsFixedWidth
pdfGetWordFontIsSerif
pdfGetWordFontIsSymbolic
pdfGetWordFontIsItalic
pdfGetWordFontIsBold
pdfGetWordRotation
pdfGetWordCharPos
pdfGetWordCharLen