[okular] [Bug 394775] Annotations in the separated XML files

ederag bugzilla_noreply at kde.org
Sun Sep 18 15:48:36 BST 2022


https://bugs.kde.org/show_bug.cgi?id=394775

--- Comment #20 from ederag <edera at gmx.fr> ---
> I'm not clear why you would want the pdf file always non-writable? 

Because many of these pdf are no longer available, and I don't want any
corruption risk.

> Perhaps you have simultaneous multiple users viewing and annotating the same pdf and
> you want each user to save their own annotations? 

That would be a relevant use case, indeed.

> If so, I see no way to do that without changing the Okular code.

Actually, since there were no reply,
I rolled my own take at this, and got a good proof of concept.

As in comment #16, it is using sha512, but this time I took some of your ideas
such as keeping pristine okular and working with binary deltas
(except I used rdiff instead of plain tail).

Currently, there are two bash scripts.
The first script copies the original file, applies the former delta if it
exists,
and opens the working copy with the pristine okular.
The other bash script, running in the background, monitors the diffs folder;
when the working copy is updated (when the user saves the file in okular),
the delta is recalculated (within a lock to prevent race conditions).

I'm working on the second script to make it a dbus service, with automatic
launch.
It's a bit like your manager, but much simpler.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Okular-devel mailing list