Add hyperlink to PDF
This code samples draws a hyperlink on an existing PDF page. The link is added as a link annotation. A URI action is associated with the mouse up event.
<![CDATA[using (FileStream fileIn = new FileStream("in.pdf", FileMode.Open, FileAccess.Read))
{
Document pdf = new Document(fileIn);
Page page = pdf.Pages[0];
Link link = new Link();
page.Links.Add(link);
// position link at the top-right corner
link.Height = 40;
link.Width = 100;
link.Left = page.Width - link.Width;
link.Bottom = page.Height - link.Height;
// add a UriAction to the mouse up event
link.MouseUpActions.Add(new UriAction("http://www.tallcomponents.com"));
using (FileStream fileOut = new FileStream("out.pdf", FileMode.Create, FileAccess.Write))
{
pdf.Write(fileOut);
}
}
Using fileIn As New FileStream("..\..\..\inputDocuments\BlueWater.pdf", FileMode.Open, FileAccess.Read)
Dim pdf As New Document(fileIn)
Dim page As Page = pdf.Pages(0)
Dim link As New Link()
page.Links.Add(link)
' position link at the top-right corner
link.Height = 40
link.Width = 100
link.Left = page.Width - link.Width
link.Bottom = page.Height - link.Height
' add a UriAction to the mouse up event
link.MouseUpActions.Add(New UriAction("http://www.tallcomponents.com"))
Using fileOut As New FileStream("..\..\out.pdf", FileMode.Create, FileAccess.Write)
pdf.Write(fileOut)
End Using
End Using

PDFControls.NET 2.0
A collection of UI controls for adding PDF read and edit functionality to your .NET Windows application.
Print PDF unattended
Convert PDF to JPG PNG
Convert to multi-page TIFF
Single assembly

PDFControls.NET 3.0
Build your own PDF editor. UI Controls for adding PDF read and edit functionality to your .NET application.

PDFKit.NET 4.0
Create and manipulate PDF documents. Split, append, stamp, encrypt, extract, fill and more.
Single assembly
Convert PDF to JPG PNG
Convert to multi-page TIFF
Print PDF unattended

PDFKit.NET 5.0
Create and manipulate PDF documents. Split, append, stamp, encrypt, extract, fill and more.
Single assembly
Convert PDF to JPG PNG
Convert to multi-page TIFF
Print PDF unattended