PDF .NET Library Logo

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