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
close icon
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to include popup annotation in PDF document using WPF PDFViewer?

Platform: WPF |
Control: PdfViewer
Tags: pdfviewer, popup

Currently, WPF PDFViewer control does not have support for including the pop-up annotation. However, the following workaround has the support for the same action in WPF.


 //Create a new popup annotation
 PdfPopupAnnotation popupAnnotation = new PdfPopupAnnotation(bounds, textBox.Text);
 // Set the location
 popupAnnotation.Location =new System.Drawing.PointF(Point.X, Point.Y);
 // Set the properties
 popupAnnotation.Border.Width = 4;
 //Set the pdf popup icon
 popupAnnotation.Icon = PdfPopupIcon.Note;
 //Add this annotation to a new page

View sample in GitHub.

Steps to be followed: 

  1. Drag the text box control, which is available at the left, to the displayed document at the required position. 
  2. Using the text box, you can enter and edit the text, and also move and delete the text box control. 
  3. To save the pop-up annotations in the document, go to File, and click Save. It will save the text as PopupAnnotation in the resultant file. 
  4. To open a new document, go to File, and click Save. 

2X faster development

The ultimate WPF UI toolkit to boost your development speed.
You must log in to leave a comment
Aug 13, 2018

Hi Team,

Thanks for this sample. There is a issue with multi page pdf, like when the pdf contains multiple pages, if I drag the Textbox control to page 2, seems like this is copied to all pages. It is diplaed on next and previous pages as well. Can we restrict this to the page where we are placing the textbox?

Aug 13, 2018

Above issue is caused because, we are creating a canvas and converting page as image. 

We don't mind converting pdf to image, can we addredd below questions

1. Do we need to create different canvas for each page, to have different annotation to be placed on different pages? 

2. Can entire pdf can be viewed at once, using scroll instead of prev/ next? 

3. Can we create thumbnail view of the pdf?


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