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

How to import annotations to specific page

Hi,

Here is my scenario:

  1. I have one page PDF file and I have loaded that file in my PDF viewer. 
  2. The user added annotations to that page. 
  3. Exported the annotation to a JSON/Xfdf file. 
  4. The user modifies the orginal PDF file by adding one page at the beginning of that PDF file offline. 
  5. Now again loading that PDF file into our PDF viewer. Now we have two pages, as the user added a page at the beginning of that file.
  6. Now we need to load annotations to page 2.

Let me know how we can achieve this.

Thanks

1 Reply

CK Chinnamunia Karthik Chinna Thambi Syncfusion Team January 10, 2023 02:07 PM UTC

There is no API to import the annotations on a specific page. But you can achieve this by editing the JSON or XFDF data as mentioned below. We have shared the steps to import the annotation to the specific page.





Note: For XFDF, you need to change the Page value as in the screenshot.





Loader.
Live Chat Icon For mobile
Up arrow icon