How do I underline annotations in PDF?

Q:

My PDF form has some URL weblinks, but I’d like to display them with an “underline” for the user to immediately notice them. Do you know where I could do that?

A:

The simplest way is to set an annotation’s borderstyle to e_underline. The sample project Annotations shows how to iterate through all of the annotations and determine which ones are links, which you can then set to be underlined. Our sample code page can be found here: http://www.pdftron.com/pdfnet/samplecode.html