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

How to remove annotations ?

hi there,

i 've used this code here to add annotations as highlights

my question is that how would I remove those added highlights 

i 've read that this line 


embeds the annotations into the pdf page content so that they would never be edited or deleted and I do not want that so I tried commenting it but  i ve did that and tried to highlight some text lines the annotations were not showing 

so how would be able to delete these annotations after they have been all embedded within the pdf content ?

i ve tried to add a white highlight over the yellow annotation so that it would appear as it has disappeared but it did not work properly

please answer my question asap as there is not any other resource rather than you now i ve tried every t
Screenshot from 2023-04-19 03-13-04.png

3 Replies

DR Deepika Ravi Syncfusion Team April 19, 2023 05:31 PM UTC

Hi Yusuf Abdelfattah,

Currently, we do not have support for adding, editing, and reviewing the text markup annotations in Flutter SfPdfViewer. We do not have any immediate plans to implement this feature. At the planning stage for every release cycle, we review all open features and identify features for implementation based on specific parameters including product vision, technological feasibility, and customer interest. We will let you know when this feature is implemented. Kindly use the following link for track the status of the feature,


The following KB, we have provided the workaround for adding the text markup annotation in SfPDFViewer with the help of Syncfusion PDF Package .



Deepika R

YA Yusuf Abdelfattah replied to Deepika Ravi April 19, 2023 05:39 PM UTC

So what u gave me the same link i ve provided is there is any other work around to not being forced to flatten the annotations so that i would be able to remove them ? 

That is strange actually ur pdf package does not perform the simplest things that a pdf viewer would do 

It would be great if u recommend me another respectable package 

I think iam done with that syncfusion thing 

DR Deepika Ravi Syncfusion Team April 20, 2023 02:23 PM UTC

Hi Yusuf Abdelfattah,

We do not have any workaround for adding the text markup annotation in our PDF Viewer without flattening. On flattening, the annotation will be added to page graphics and so it cannot be removed.  Also, we are sorry that the text markup annotation feature is not supported in our PDF Viewer for now. We do not have any immediate plans either to implement this feature support due to other work commitments. You can track the feedback link shared previously and we will update there when this feature is implemented. 


Deepika R

Live Chat Icon For mobile
Up arrow icon