Where does Okular store the PDF annotations?

20

5

I am using Okular in Ubuntu 11.04 as it has support to annotations and is faster to do a quick find across large documents. The annotations are not stored in the document, but are stored as metadata in some folder. I would like to know where Okular stores the metadata, so that I can create a symlink in Dropbox so that my annotations to the PDF are automatically backed up.

The answer to the below query mentions the location of the metadata in KDE, but I am using GNOME.

Where does okular store it's metadata

Praveen Sripati

Posted 2011-09-08T15:48:34.030

Reputation: 1 385

Answers

15

Update (thanks to @fifaltra for pointing me to it, see the comments)

The new annotation place is:

~/.local/share/okular

they were previously stored by default in xml files located in

~/.kde/share/apps/okular/docdata

or better

$(kde4-config --localprefix)/share/apps/okular/docdata/

regardless of the fact you're using gnome or not.

David Costa

Posted 2011-09-08T15:48:34.030

Reputation: 701

2

For newer systems, see https://askubuntu.com/q/942748/231418

– fifaltra – 2018-02-23T13:10:52.750

1If you see the link above (user60381's answer), you will find out that for newer systems, the annotations seem to be in the PDF itself, rather than in the xml at ~/.local/share/okular. – Homero Esmeraldo – 2019-06-18T18:38:35.397