Bug 427465 - Bookmarks: error if pdf-file was moved or renamed
Summary: Bookmarks: error if pdf-file was moved or renamed
Status: RESOLVED DUPLICATE of bug 377454
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 1.11.1
Platform: Flatpak Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-08 22:23 UTC by mariuswest74
Modified: 2021-08-12 19:47 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Test PDF (10.92 KB, application/pdf)
2020-10-09 22:57 UTC, mariuswest74
Details
pdfxchange (932.66 KB, image/png)
2020-10-09 22:57 UTC, mariuswest74
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mariuswest74 2020-10-08 22:23:57 UTC
SUMMARY

saved Bookmarks ("Lesezeichen") in Okular have a reference to the file and not only to a page number.

If I move the file and want to go to a bookmarked page I got an error

STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT


EXPECTED RESULT

pressing bookmark should go to that page even if file was moved. Bookmarks should only reference to page number

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Albert Astals Cid 2020-10-08 22:33:47 UTC
Yes, you moved the file, the old file where the bookmark points doesn't exist anymore. There's nothing we can do.
Comment 2 mariuswest74 2020-10-09 05:39:10 UTC
Hi, almost all other pdf editors (windows and Linux) store the bookmarks in the respective pdf file. 

Okular is the best PDF  reader and editor in Linux. 

It is really a pity that okular doesn't save bookmarks in the file. I'm not able to send the file via email to somebody else together with the bookmarks.

Please, please change this. It is so important to have the industry standard in this respect.

Thank you so much!
Comment 3 Albert Astals Cid 2020-10-09 18:14:45 UTC
Show me a single PDF file with bookmarks in it. PDF doesn't support bookmarks because it makes no sense.

A bookmark is an external pointer to a place in the file. I.e. you open Okular without any file and you can look at your bookmarks to see which file to open, they have inherently be outside the file.

Or maybe you are just using the wrong terminology and mean annotations and not bookmarks.

In that case annotations are stored inside the file and thus you can send them to whoever you want (unless you're using ancient Okular).
Comment 4 mariuswest74 2020-10-09 22:57:06 UTC
Created attachment 132251 [details]
Test PDF
Comment 5 mariuswest74 2020-10-09 22:57:52 UTC
Created attachment 132252 [details]
pdfxchange
Comment 6 mariuswest74 2020-10-09 23:00:02 UTC
the bookmarks were created with MasterPDF in Linux and with pdfxchange in Windows 10. 

Actually if you open the pdf  file in Firefox (Linux LMDE4) you can see the bookmarks as well
Comment 7 Nate Graham 2020-10-12 18:21:46 UTC

*** This bug has been marked as a duplicate of bug 380330 ***
Comment 8 mariuswest74 2020-10-13 06:06:06 UTC
Ok! This is really an issue. Otherwise I can't use okular to send my friend a paper with 200 pages with relevant bookmarks. In my opinion this feature is an industry standard.

Thank you!!!
Comment 9 Albert Astals Cid 2020-10-17 22:44:17 UTC
(In reply to mariuswest74 from comment #8)
> Ok! This is really an issue. Otherwise I can't use okular to send my friend
> a paper with 200 pages with relevant bookmarks. In my opinion this feature
> is an industry standard.
> 
> Thank you!!!

Nate, what he wants is different, he wants to editate the table of contents. He is not able to understand the difference between Okular bookmarks (which are like your browser bookmarks) and the table of contents of a file.

So it's a wrong duplicate, anyhow we're not going to add table of contents editing features
Comment 10 fire f. 2021-08-09 03:43:46 UTC
A serious pdf reader should offer bookmark functionality like the OP and gazillions of users expect it.


The "keditbookmarks" GUI standalone app has import / export functions. Some find/replace functinality for the document's path, e.g. using  


/home/bookmk

~/documents/


could tremendously enhance the power of Okular. For the moment, manual find/replace of the path does already allow users to maintain big bookmark-collections across machines and what not.

2 collaborating users would, however, use a standardized absolute path such as


/home/bookies

or make that a symbolic link (via:   ln -s  src targ  ) into

/~/documents  in a particular language  (such as:   ~/Dokumente/ )


Worth repeating that without powerful portable bookmarks, which clearly are possible, Okular is not half the man it used to be in user's perception.
Comment 11 fire f. 2021-08-09 03:45:54 UTC
but not even keditbookmark's own KHELP does point out the whole power of KDE bookmarks - like right there in KHELP ! 


But that will not deter power users from finding it out...
Comment 12 Laura David Hurka 2021-08-12 19:44:43 UTC
(In reply to Albert Astals Cid from comment #9)
> (In reply to mariuswest74 from comment #8)
> > Ok! This is really an issue. Otherwise I can't use okular to send my friend
> > a paper with 200 pages with relevant bookmarks. In my opinion this feature
> > is an industry standard.
> > 
> > Thank you!!!
> 
> Nate, what he wants is different, he wants to editate the table of contents.
> He is not able to understand the difference between Okular bookmarks (which
> are like your browser bookmarks) and the table of contents of a file.
> 
> So it's a wrong duplicate,

Agree, changing the duplicate mark.

> anyhow we're not going to add table of contents
> editing features

*** This bug has been marked as a duplicate of bug 377454 ***
Comment 13 Laura David Hurka 2021-08-12 19:47:12 UTC
@fire: I do not understand what you want to say (and also do not understand keditbookmark), but I think that should rather be commented in Bug 380330.