Version: 0.10.2 (using KDE 4.4.2) OS: Linux If you are using the annotation feature of okular and after doing work mistakenly choose "save as" instead of "export as", okular not only fails to save the annotations without warning but it then seems to attempt to reload the document as a pdf (which fails) thereby deleting all the work you have done. Reproducible: Always Steps to Reproduce: Use okular to add annotations to a pdf. Choose "save as" and save the document. Actual Results: Document you are editing closes and saved version is unusable. All your work is lost without warning. Expected Results: "save as" dialog could say "WARNING. Cannot save document with annotations. Choose 'export as' instead or all your data will be lost." OS: Linux (i686) release 2.6.32-24-generic Compiler: cc
To be more precise about the steps to disaster. Here is what I did. 1. Load file.pdf in okular 2. Export as file.okular 3. Annotate for several hours 4. Save as file.okular 5. See that okular has tried and failed to reload the document and the saved version is useless.
I see that it sucks losing the work, but you already got asked if you wanted to overwrite the file. What you want us to do? To ask again?
No sorry that isn't the point. The steps were as above so I had at this point never saved the annotations at all and was overwriting a file I didn't care about (file.okular) not the original file.pdf which I did care about. The problem is not the overwriting per se. The problem is that a) it loses all your annotations when you choose save as instead of export it seems (without warning) and b) it then reloads automatically which has the effect of closing the document you are annotating so you can't fix the problem by then exporting correctly. To be clearer, when editing a document in word processor, say, and you save a copy on top of an old one, it will usually say "warning you are overwriting" but it doesn't mean "warning you are overwriting with something that is unusable so you will lose both the old and the new version." In fact OpenOffice does give a warning about losing formatting when you save in the wrong format which is sort of relevant and might be of interest. What I think would be better would be a message that warns that you have chosen the wrong option and are saving a document with annotations. That is you will lose all your work unless you choose 'export as' instead. Actually, even better would be if the "export as" option disappeared and "save as" just had a drop down list of formats, one of which supported annotations.
I'm unable to reproduce in Okular 0.13.3. Raphael, can you still reproduce?
No answer from the user in 2 years.