Q:
I would like to create a hyperlink (aka Annot) in a PDF document that
would open a URL in the default web browser. How do I go about doing
this? How to I create an Action to make this happen?
--------------
A:
You could use the following snippet (in C#):
// Create a link action
Obj action = Obj.CreateDict();
link3.Put("A", action);
action.Put("S", Obj.CreateName("URI"));
action.Put("URI", Obj.CreateString("http://www.pdftron.com"));
Annot link = Annot.CreateLink(doc, new Rect(85, 458, 503, 502),
action);
page.AnnotPushBack(link);