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.

Can pdf and djvu share annotation .xml or .okular files?

Tags: None
(comma "," separated)
timlee
Registered Member
Posts
22
Karma
0
Can pdf and djvu files share annotation files in Okular?

I have a pdf and a djvu files. One of them is created by converting the other.

1. If I have made some annotations to the pdf file in Okular, can the djvu file share the annotations with the pdf file?

If I am correct, annotations saved to an .okular archive file for a pdf file can only be used standalone, so the djvu file can't use the annotations.

Also I find that the annotations are saved by Okular automatically under a home dir ~/.kde/share/apps/okular/docdata (I am using Gnome and Ubuntu).
the name of the annotation file is some number followed by the filename of the pdf file and by ".xml".
What is the "number"? Is it some hash value of the filename of the pdf file?

I did some trial to make the xml annotation file work with the djvu file (the djvu file was created from the pdf file by pdf2djvu).
I rename the xml file so that the djvu file can find it, by the following two steps:

(1) firstly, create a dummy annotation file for the djvu file, and remember the "number" from the filename of the dummy annotation file.
delete the dummy annotation file for the djvu file,

(2) then, change the annotation xml file for the pdf file to one for the djvu file:
replace the number in the name of the xml file for the pdf file, with the new number from the deleted dummy xml file for the djvu file.
change "pdf" to "djvu" in the file name of the annotation file

Now the annotations created for the pdf file work for the djvu file, but the annotations' font size in the djvu file looks much smaller compared to the font size of the original text. That is bad.

2. Conversely, if Ihave made some annotations to the djvu file in Okular, can the pdf file share the anoations with the djvu file?

If there is no convenient way of sharing annotations between pdf and djvu files, can I make a feature request?

Thanks.
User avatar
TSDgeos
Moderator
Posts
49
Karma
0
No two different files can't share annotations (well they do if they have the same size and filename)

The number is the file size, probably you can change the pdf annotations file to match the djvu file size and name and it should most probably work.

"If there is no convenient way of sharing annotations between pdf and djvu files, can I make a feature request?"

You can use bugs.kde.org to ask for this feature but you'll have to be very convicing because i don't see the point of it at all.


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], Evergrowing, Google [Bot], Sogou [Bot]