How do I obtain PDF character positioning information?

Q: We are currently evaluating your PDF SDK to use in our application
to find superscripts or subscripts in PDF files. Is this possible
with your text extractor class to retrieve font info for each glyph
within a word and compare some positional information? Any code
samples or pointers in the right direction would be greatly
A: Yes this is possible. For full control and access to PDF grahics
model you mat want to use ElementReader and CharIteator. For more info
please see:

"How can I get the bounding box for each character in the text run"

Alternatively you could use 'pdftron.PDF.TextExtractor' (http:// and iterate over
words and each character in the word to obtain their bounding boxes.
For examle:

for (word=line.GetFirstWord(); word.IsValid();
word=word.GetNextWord()) {
  Rect bbox = word.GetBBox();
  int num = word.GetNumGlyphs();
  for (int i=0; i<num; ++i) {
    word.GetGlyphQuad(i, quad); // Position info
    Style s = word.GetCharStyle(i); // Font and char style

Please keep in mind that ElementReader is more powerful than
TextExtractor, however TextExtractor is simpler to use.