We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to insert hyperlinked image in PDF?

Platform: WinForms |
Control: PDF
Tags: pdf, hyperlink

You can achieve the hyperlinked image in PDF using PdfUriAnnotation. You can add the annotation in PdfPage and draw the image in PdfPage at the same bounds of annotation using PdfGraphics.

Refer to the following code example to draw the image at specified url annotation bounds.


// Create a new instance of PdfDocument class.
PdfDocument document = new PdfDocument();
//Add the page
PdfPage page = document.Pages.Add();
//Image path
string imagePath = @"..\..\Data\logo.png";
//Draw Image
page.Graphics.DrawImage(PdfImage.FromFile(imagePath), new RectangleF(100, 70, 390, 130));
//Create url annotation
PdfUriAnnotation url2 = new PdfUriAnnotation(new RectangleF(100, 70, 390, 130));
//Add the link
url2.Uri = "http://www.syncfusion.com";
url2.Border = new PdfAnnotationBorder(0, 0, 0);
//Add the color
url2.Color = new PdfColor(Color.White);
//Add the annotation

Sample Link


2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile