I'm using Okular to read a book and I was using the revision tool (F6). But when I renamed the file, named `teoria dos numeros.pdf` to `Teoria dos Números.pdf`, my revisions disappeared. I had notice if I return the name of the file to the originals the revisions came back, so, looks like the revisions are stored using the filename, but, if the filename is updated, the reference need to be updated too. How Okular don't do this, this is a bug. Reproducible: Always Steps to Reproduce: 1.Open a file (prefereable .pdf files) with Okular. 2.Do a revision on it (using the F6 tool or going to Tools->Revision). 3.Close the file. 4.Rename the file. 5.Open the file again. 6.Your revisions probably disappeared! Expected Results: Keep the revisions even if the file has its named updated.
Image before the problem http://derp.co.uk/b6e1b Image after the problem http://derp.co.uk/5383d OBS.: See in the image the filename on top of the screen.
If you read the manual it clearly states annotations are not saved in the file but in an associated database, if you rename the file, obviously the link is lost because we can't know you renamed the file (we actually could, but it would be very power hungry since would need to monitor each and every rename on your computer). For KDE >= 4.9 you can save annotations in the file, so this should not be a problem anymore.
(In reply to comment #2) > If you read the manual it clearly states annotations are not saved in the > file but in an associated database, if you rename the file, obviously the > link is lost because we can't know you renamed the file (we actually could, > but it would be very power hungry since would need to monitor each and every > rename on your computer). > > For KDE >= 4.9 you can save annotations in the file, so this should not be a > problem anymore. My kde version is the latest in Ubuntu (apt-get upgrade/dist-upgrade): Qt: 4.8.1 Plataforma de desenvolvimento KDE: 4.8.3 (4.8.3) I can't confirm that works in kde 4.9 as you says. But I'm waiting for the official packages. If someone post a answer proving (like I posted proving was wrong, using images) in KDE 4.9 I can change to solved. For while, edit the post as Invalid and Solved is wrong. If not works well in KDE 4.9 is still a real open bug.
Well, i'm the developer of the application, you don't play changing but permissions with me just because you feel like. If you have proof it's not fixed in KDE 4.9 with poppler >= 0.20 then reopen the bug, but until then there is no bug. First because what you get is the *documented* behaviour, second because an alternative will be provided with KDE 4.9 and poppler >= 0.20
Can you point what file I need to change the filename and then get the revisions for my file with its new name? As you are a developer probably you will know this information.
open a terminal cd `kde4-config --localprefix`/share/apps/okular/docdata rename the file of the old name to the one of the new name
It works. Thx a lot Albert! Cya.