I have discovered with great surprise that Evince 2.32.0 allows for annotations on a PDF. To my dismay however, I have found no means to delete annotations (no button, no menu, no right-click-menu, nada). How can I delete an annotation then?
I have discovered with great surprise that Evince 2.32.0 allows for annotations on a PDF. To my dismay however, I have found no means to delete annotations (no button, no menu, no right-click-menu, nada). How can I delete an annotation then?
That is because at the moment you can not remove them. Developers are planning this feature for future releases.
Right-click annotation icon, “Remove annotation”
Simply right click an annotation and select “Remove annotation” from the context menu. I have Evince 3.14 according to the Evince bug tracker the issue was solved summer 2014
Below is a hack for older Evince versions.
There is a hack for the determined.
Open the pdf in a simple text editor (it should not try to “fix” it). I used nano.
Scroll all the way to the bottom (hold Page Down).
The annotations are in a non-binary format (thus relatively readable) at the very end of the PDF. In a PDF with two annotations the final part looks like this:
I managed to delete specific annotations by removing the correct lines, but it may take some trial and error. Always create a backup before you start messing with this.
When you remove a line, you must also remove all lines that reference it with a /Parent The number references the number at the start of the line you removed.
NOTE: The part after the upper %%EOF can be removed entirely to remove all annotations. This seems fairly safe.
This works for me:
(evince 3.4.0, Ubuntu 12.04)
This was actually a limitation of the poppler library, which did not support deletion of annotations (see this bug report).
Removal of annotations in poppler has now been implemented for both qt4 and glib frontends (currently in git master). Hopefully it won't take too long until the problem is fixed for evince.
If you wish to remove all annotations from a pdf file, this should work: