15

Is there a way of auto-saving annotations and highlights in Okular 0.19.3?

Every time I make a change, I got to Ctrl+Shift+S to save it, and sometimes I forget it, I close the window and the software doesn't show a reminder window (as some others do in Windows).

Is there a way to configure it to auto-save, then?

Eranda Peiris
  • 741
  • 7
  • 17
Cabeça de Vento
  • 179
  • 1
  • 10
  • Have you submitted this as a "bug" (really a "feature request" but they usually use the bug system) against Okular? I don't see it in the [wishlist](https://bugs.kde.org/buglist.cgi?bug_severity=wishlist&bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&product=okular&short_desc_type=allwordssubstr). FWIW [Okular is on github](https://github.com/KDE/okular) too. – pbhj Jan 30 '18 at 20:59
  • FWIW I just tested with 4:17.04.3-0ubuntu1 aka "version 1.1.3" and I get the desired behaviour. Closing without saving, reopening, highlights are as they were when file was closed. – pbhj Jan 30 '18 at 21:06

2 Answers2

2

Autosave is not possible without chaging the source code i.e graphically . Officially Okular has not provided this. check this out:

https://docs.kde.org/trunk5/en/kdegraphics/okular/okular.pdf

When adding an annotation to a pdf file,

Annotations are saved internally by Okular. You can export the annotated document using File -> Export As -> Document Archive

So if we close the file, and open it again in Okular, we can still see our annotations added last time. But if we open the file in another application , we can't see the annotations we added in Okular. This may be because it is .okular extension!

But sometimes it doesn't save automatically.Don't know why!

For other formats (and PDF itself), there's still the option to export annotatated documents in .okular format (File -> Export As -> Document Archive) and share them with other Okular users.

Actually, automatic internal storage is disabled in some cases, and you need to save to PDF every time you make a change. But there are warnings and a "Save or discard changes?" prompt in place for that.

The library we use to deal with PDF files, doesn't support modifying encrypted PDF files yet. If you open such a file, the "Save As" menu entry is grayed out and you are warned that you can only export as .okular file.

Nitesh Tosniwal
  • 162
  • 2
  • 14
0

It can be achieved by pushing ctrl+s "smartly". Here is the code I wrote to achieve that: https://github.com/VincentWang25/Autosave . Hope you find it helpful :)