Bug 457017 - Bookmarks stored in a file next to PDF
Summary: Bookmarks stored in a file next to PDF
Status: RESOLVED DUPLICATE of bug 336381
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Flatpak Linux
: NOR wishlist
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-22 13:42 UTC by Tymek
Modified: 2022-07-22 17:34 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tymek 2022-07-22 13:42:23 UTC
Hello,

I use Okular with PDF files that are synchronized between different computers.  I understand that all bookmarks are saved in 'bookmarks.xml', using absolute file paths in the following locations (Linux):

Native version
~/.local/share/okular/bookmarks.xml

Flatpak version
~/.var/app/org.kde.okular/data/okular/bookmarks.xml

It would be great to be able to easily synchronize bookmarks created by Okular.  What if there existed an option under settings to store bookmarks in a file in the same directory as the PDF, using the same filename (+ a unique identifier) but with an XML extension?  This would do away with having to store the absolute filename paths in the XML file, essentially making bookmarking a feature easily available in a wide variety of workflows (e.g., Google Drive, Dropbox, Syncthing).  It would also allow cross-platform compatibility.  Other metadata (e.g., last viewed page, last viewing style) could be added to the same XML file in time if desired.

Currently being able to access bookmarks from all files in one window is a very neat feature. I understand that this feature would probably be lost (or possibly made unnecessarily complicated to re-implement), but having my proposed feature set as an option would allow the user to choose what they feel is best for their workflow.
Another approach would be having Okular first check for a local XML file (i.e., same directory as the PDF), then resorting to opening the standard bookmarks.xml if no such a file is found.
Comment 1 Nate Graham 2022-07-22 17:34:25 UTC

*** This bug has been marked as a duplicate of bug 336381 ***