[Okular-devel] [Bug 151614] store annotations with documents

Pino Toscano toscano.pino at tiscali.it
Thu Nov 1 19:19:15 CET 2007


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=151614         




------- Additional Comments From toscano.pino tiscali it  2007-11-01 19:19 -------
> Another aspect is file renaming. I added some annotations to a pdf file and
> renamed it. After I reopened the file all annotations were gone. As far as I
> can see the problem is that the xml file is not updated.

I doubt this is solvable.
Let's say you have a.pdf and okular has the (internal) .xml for it.
Then, you rename it to b.pdf, and you open it in okular.
How can okular know that b.pdf was renamed from a.pdf?

> * in the same folder + same name as document + different extension (+ compressed ?!)

While it can look a better solution (you have the metadata .xml aside the document), this can both pollute the places where your documents are (ok, we pollute the ~/.kde/share/apps/okular/docdata as well, but at least they are together there) and not always be doable (think about documents in read-only places).

> * in the same file - store directly into the file as done by many annotation tools

Yeah, this is the top preferred solution, who wouldn't it? ;)
The problem is that we have no way to change something in the documents we open.
Furthermore, it would not be feasible if the document type does not support annotations (eg PS, DVI, etc), so in case a "fallback" solution for those is needed indeed.

> * create a new ''file format'' so that the document with all annotations is stored with all annotations in one file (e.g. compressed file similar to odf) 

That was actually the idea we had so far: have a sort of mini-wizard (or a simple menu action) to create an archive containing document + metadata.

Of course, the fact that "we had the idea about..." does not imply anything, we're always open for discussion!


More information about the Okular-devel mailing list