pdf viewer edit specific annotation attributes programmatically

I need to select annotation by id and update its attributes like (stroke Color , isLock , etc) Or update the rendered annotation collection with modified one.


3 Replies

AA Akshaya Arivoli Syncfusion Team May 7, 2020 09:05 AM UTC

Hi Mohamed, 

Thank you for contacting Syncfusion support. 

We can select and change the properties of the annotation from the code behind using the PDF Viewer API. We have created the sample for the same and shared in the below link, 


In the above sample draw an annotation and click on “Select Annotation” button. 

API link :  

Please try it and revert us with more details about your requirement if you need any further assistance.  

Regards, 
Akshaya 



MO Mohamed May 7, 2020 07:05 PM UTC

Thanks Akshaya, It worked for me.
How can I delete an annotation with Id ? 
 


AA Akshaya Arivoli Syncfusion Team May 8, 2020 08:47 AM UTC

Hi Mohamed, 

Thank you for your update 

We can delete the annotation from the code behind using the deleteAnnotation() API. Please find the sample from the below,  


Please try it and revert us with more details if you need any further assistance. 

Regards, 
Akshaya  


Loader.
Up arrow icon