XDoc.PDF
Features
Tech Specs
How-to C#
Pricing
How to Start Convert PDF Read PDF Build PDF Work with PDF Modules PDF Document PDF Pages Text Image Graph & Path Annotation, Markup & Drawing Redaction Security Digital Signature Forms Watermark Bookmark Link File Attachment File Metadata Printing Work with Other SDKs Barcode read Barcode create OCR Twain

C# PDF Viewer, Reader Library
How to open, view, display, edit Adobe PDF file hyperlink (url) in c#.net, asp.net, wpf windows. Free Download


Guide C# Programmers to Insert a Hyperlink to Specified PDF Document Page in C# Using .NET PDF DLLs










  • A professional XDoc.PDF SDK for C# .NET project, able to edit hyperlink in adobePDF document
  • .NET components and library provide various PDF link edit functionalities in both Visual C# .NET WinForms and ASP.NET application
  • Free online C# class source code for editing PDF hyperlink in Visual Studio .NET framework project
  • Support .NET WinForms, ASP.NET MVC in IIS, ASP.NET Ajax, Azure cloud service, DNN (DotNetNuke), SharePoint
  • Empower to create clickable and active html links in .NET WinForms
  • Able to insert and delete PDF links
  • Able to embed link to specific PDF pages
  • Easy to put link into specified position of PDF text, image and PDF table
  • Link access to variety of objects, such as website, image, document, bookmark, PDF page number, flash, etc
  • Keep Microsoft Office Word, Excel and PowerPoint links in PDF document
  • Make PDF link open in a new window or tab
  • Enable users to copy and paste PDF link
  • Help to extract and search url in PDF file


RasterEdge PDF SDK for .NET offers C# users a variety of PDF file editing options, like options for editing PDF document hyperlink and navigation links. By using specific PDF editing APIs, C# users will be able to add and edit hyperlinks within the document with extreme ease. This online C# tutorial is mainly about how to edit PDF hyperlink by inserting and adding link to PDF document.







Add a link annotation to a PDF page using c#


You may use the following programming demo to add a hyperlink to input PDF document.



String inputFilePath = Program.RootPath + "\\" + "1.pdf";
String outputFilePath = Program.RootPath + "\\" + "Output.pdf";

//  open a PDF file
PDFDocument doc = new PDFDocument(inputFilePath);
//  get the 1st page
PDFPage page = (PDFPage)doc.GetPage(0);

//  set a rectangle area start from Point (0, 0) with width 400, height 200 pixels (in 96 dpi)
RectangleF linkAnnotBoundary = new RectangleF(0, 0, 400, 200);
//  set URL value
String uri = @"http://www.google.com";

//  create the annotation
PDFAnnotLink annot = new PDFAnnotLink();
annot.SetBoundary(linkAnnotBoundary);
annot.Uri = uri;

//  add annotation to the page
page.AddPDFAnnot(annot);

//  save to a new file
doc.Save(outputFilePath);