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

Andrew Norton bugzilla_noreply at kde.org
Sun Sep 18 13:15:45 BST 2022


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

--- Comment #19 from Andrew Norton <norton.ah at gmail.com> ---
(In reply to ederag from comment #18)

> Did I read correctly that the pdf files have to be writable, and thus
> temporarily modified,
> which I don't want (I want a pure viewer) ?

The Python script (annotation-mgr) replaces any annotated pdf by its backed-up
original when Okular closes. Thus, permissions and modification time of the
original pdf are preserved. However, while the "working copy" of the pdf is
being viewed and annotated, yes, that file is writable.

BTW, I don't think Okular cares whether or not a pdf file has write permission.
If it does not, then when Okular saves annotations it simply changes the write
permission (if the user is owner). 

I'm not clear why you would want the pdf file always non-writable?  Perhaps you
have simultaneous multiple users viewing and annotating the same pdf and you
want each user to save their own annotations?  If so, I see no way to do that
without changing the Okular code.

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


More information about the Okular-devel mailing list