PDF .NET Library Logo
Home Products Code Library Online Demos Support Forum Buy About Us  
Code Library

How to create URL links on a PDF page

The following code creates a PDF file called "links.pdf" that has a link to a web site.

c# sample:

PDFDocument MyPDF = new PDFDocument("Link.pdf");

MyPDF.CurrentPage.Body.AddTaggedText("<a href=\"http://www.pdf-technologies.com\"><font color='Navy'><u>Please visit us.</u></font></a>");

MyPDF.Save();

Back to PDF Code Library