What is the color of text markup annotation?

Q:

I want read color of underlined annotation. Could you please suggest what is the method I can read color of text underline annotation.

A:

You can get the color of any annotations by calling any of:

annot.GetColorAsRGB()
annot.GetColorAsCMYK()
annot.GetColorAsGray()

Please refer to the official documentation for more details:

http://www.pdftron.com/pdfnet/apiref.html