How do I retrieve font colour, as well as font size information?


I am trying to figure out how we can retrieve font colour information,
as well as font size information (i.e. ? 12pt, 10pt...). How would I
be able to accomplish this?

In PDF documents, text color and font size are associated with text
elements and not with the font object itself. For an example of how to
extract various graphics state attributes (including font size, text
color space & color), please take a look at ProcessText method in
ElementReaderAdv sample project (

Regarding font size you may want to take a look at the following
  Why does GetFontSize() always returns 1.0?
  You may also want to search for "How can I get the bounding box for
each character" in PDFNet Knowledge Base (