This forum has been archived. All content is frozen. Please use KDE Discuss instead.
Please use bugs.kde.org for bug reports or feature requests. Development related questions should be directed to the okular-devel mailing list.

Okular: jpdfbookmarks destroys my highlightings

Tags: None
(comma "," separated)
schlemil
Registered Member
Posts
3
Karma
0
Hi,

I am using Okular 0.7 in KDE 4.1.0 and love the highlighting feature! Apart from that I use jpdfbookmarks-2.3.0 as a conventient program to insert bookmars that appear in the contents menue.

Unfortunately, the changes jpdfbookmarks does in the file also destroy all the highlightings I did with okular! This surprises me since, I thought that Okular does not manipulate the files at all but only creates aditional xml-files that appear in the .kde4/share/apps/okular/docdata/ directory.

Does anybody have a hunch what could be the cause of this behaviour?

Thanks in advance,

David
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Okular likely uses sums or other forms of checks to identity files previously highlighted. When you add those bookmarks, the sum will change - so Okular cannot identify it as the file it used to be.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
schlemil
Registered Member
Posts
3
Karma
0
Thanks bcooksley! I already feared that it might be something like that. Well, I'll have to think about a workaround!

Greetings, David
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
You should be able to edit/rename the XML files that Okular creates once you find out the scheme it uses to map files on disk to it's annotation storage.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
schlemil
Registered Member
Posts
3
Karma
0
bcooksley wrote:You should be able to edit/rename the XML files that Okular creates once you find out the scheme it uses to map files on disk to it's annotation storage.


Hi bcooksley,

right! Thank you so much for the hint!! I should have checked this before! Ocular apparently puts the file size in front of the file in the according xml-file. Thus, a file called "file.pdf" with a size of 951321642 gets an xml-file called "951321642.file.pdf.xml" I just have to write a script that exchanges the old number with the new after having run pdfbookmarks.

Cheers, David


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Evergrowing, Google [Bot], rblackwell