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 load a PDF in a PDF viewer along with annotations file


In my use case, I need to load the PDF with annotations from annotations file. Currently I am loading the PDF in PDF viewer and then in documentLoad event I am importing the annotations file separately.

Is there anyway I can load the PDF along with that passing the annotations file too?


1 Reply 1 reply marked as answer

YA YuvanShankar Arunagiri Syncfusion Team November 22, 2022 08:19 AM

You can import the annotation while loading the document. We have shared the sample for your reference. Refer to it and revert to us if you have any concerns about it.

Sample - https://stackblitz.com/edit/angular-p2ejpy-wnt2df?file=app.component.ts,angular.json

Web Service - https://www.syncfusion.com/downloads/support/directtrac/general/7z/Web_Service983755123.7z

Code snippet :

Steps to run the above mentioned sample:

• Run the web services

• Copy the URL produced by the web service project

• In the stack blitz sample, paste the URL in the service URL field.

• Now run the stack blitz and test the reported issue


Sinthiya K

Marked as answer
Live Chat Icon For mobile
Up arrow icon