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

Markus Grabner grabner at icg.tugraz.at
Wed Sep 10 15:16:03 CEST 2008


http://bugs.kde.org/show_bug.cgi?id=151614


Markus Grabner grabner icg tugraz at changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |grabner at icg.tugraz.at




--- Comment #49 from Markus Grabner <grabner icg tugraz at>  2008-09-10 15:15:58 ---
(In reply to comment #9)
> It'd be
> great if rather than associating the annotations to filenames, okular could
> install associate XML files with PDFs based on hashes (e.g., sha-1, md5, etc.)
> of the PDF.

I have a similar usage scenario in mind and did a quick hack to do just this
(see comment #48). It works nicely in several ways:
*) Annotations keep associated with the file after renaming it.
*) It also works for non-local URLs (http://...) since we don't need to care
for mapping the URL to some valid file name.
*) Annotations keep associated with the file after downloading it from the web
and opening a local copy (possibly under a different name).

A cmake module to detect the mhash library (or complain if it's not available)
should probably be written.

BTW (to submit my vote :-), I very much like the idea of having separate files
for storing annotations since this makes it possible to merge annotations from
different people. Nevertheless, I would also love to see the option to store
annotations directly in the file (at least for file formats which support this,
such as PDF).

Kind regards,
Markus


-- 
Configure bugmail: http://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Okular-devel mailing list