The PDF specification allows you to add several types of annotations to your documents. Annotations are often added by hand, as highlights and notes. But they can also be added programmatically. C1PdfDocument provides methods for adding hyperlinks, hyperlink targets, and file attachments to your PDF documents.
To add a hyperlink to your document, use the C1PdfDocument.AddLink method. C1PdfDocument.AddLink method takes two parameters: a string that specifies a url and a Rect that specifies the area on the current page that should behave as a link.
Here is the resulting PDF document:
You can also add local links, which when clicked take the user to another location within the same PDF document. This type of link is useful when you want to implement some type of cross-referencing within the document, such as a table of contents or an index.
Local links are identical to regular hyperlinks, except for two things: