• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support

Link Annotation

Adds a hyperlink annotation to a PDF page.

Code

using DRIT.Pdf;

using var doc = new PdfDocument();
var page = doc.Pages.Add(PdfPageSize.A4);

// Add a link annotation
var link = page.Annotations.AddLink(100, 700, 100, 20);
link.Uri = "https://www.dritsoftware.com";

doc.Save("link.pdf");

Output

link.pdf

  • Improve this Doc
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX