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

Albert Astals Cid bugzilla_noreply at kde.org
Fri Jul 24 22:46:10 BST 2020


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

--- Comment #42 from Albert Astals Cid <aacid at kde.org> ---
(In reply to David Hurka from comment #40)
> > it moves us away from being able to load as you go PDF linearized files.
> Hmm, ok.
> 
> Since this is not closed as INTENDED, I assume there must be another
> solution.

I would close it as INTENDED, you deleted the file, it's your fault, you should
not have deleted it. If you did not delete the file, blame whoever did it.

But I understand the world is imperfect and it would be useful if we could work
in that situation.

> 
> A) Keep the current swapBackingFile etc. mechanisms and make a backup file
> condititonally, like in #23:
> 
> > I wanted to suggest a size limit for such a backup, which could be linked
> > to the Okular memory setting. Suggestion:
> > * Low: Backup files below 2MB; if they are not in the home directory
> > below 10MB
> > * Normal (default): Backup files below 10MB; if they are not in the home
> > directory below 20MB
> > * Agressive: Backup files below 50MB
> > * Greedy: Backup all files which fit into the free memory
> (Remote files are always backed up, because of ReadOnlyPart.)
> 
> B) Disable editing tools (annotations, forms) when the file is not a remote
> file.

Personally, i would suggest trying to figure out why poppler fails and fix it
other than doing all strange things that need the user to read lots of stuff
that has "if this and if that and not that"

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


More information about the Okular-devel mailing list