[okular] [Bug 402017] Cannot save PDF when loaded file has been deleted

Phil bugzilla_noreply at kde.org
Thu Aug 20 10:22:55 BST 2020


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

Phil <pv.bugzilla at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pv.bugzilla at gmail.com

--- Comment #52 from Phil <pv.bugzilla at gmail.com> ---
0. To ensure we have properly diagnosed the problem:
1. This error is easily reproduced,
2. Open the same file twice (simultaneously). 
   Make changes in both copies, and save one. 
3. It is not surprising that okular refuses to save over the changed file.
4. It IS surprising that the file cannot be saved at all.

5. In my test case, okular uses 40MB to view an 0.8MB file. It would be at most
a 5% increase in RAM to keep the whole file in memory. Perhaps do that for
small files? 

6. In the meantime, perhaps a change to the error message to clarify (3&4)
above:

CURRENT VERSION:
There are unsaved changes, and the file 'file.pdf' has been modified by another
program. Your changes will be lost, because the file can no longer be saved.
Do you want to continue reloading the file?

PROPOSED VERSION:
There are unsaved changes, and the file 'file.pdf' has been modified by another
program. Your past *and future changes* will be lost, because the file can no
longer be saved, *not even to a new file*.
Do you want to continue reloading the file? 

OPTIONAL SUGGESTION: 
(Consider manually copying over your changes to a freshly opened copy of the
file.)

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


More information about the Okular-devel mailing list