Bug 389142 - Save as does not work - it says "... try to save it in another ...", but annotations are not saved
Summary: Save as does not work - it says "... try to save it in another ...", but anno...
Status: RESOLVED WORKSFORME
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-18 08:08 UTC by w_thal
Modified: 2018-04-06 11:21 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description w_thal 2018-01-18 08:08:38 UTC
Okular Version: 1.2.3 (german environment)
libpoppler72:amd64: 0.61.1-2

I know that I have to use "Save as" to save annotations to PDF file and this worked as expected till now. I have made updates, but not sure if okular was also updated. After the updates I noticed a strange behaviour.
Choosing "Save as" leads me to the "overwrite" dialog. But instead of overwriting the destination file after confirming to, it says that "the file could not be written to blablabla, please choose another location". When I use another filename the file appears but do not contain my annotations.
On the other hand, if I make some annotations and try to close okular, it warns me that there are unsaved changes. If I choose to save the file from that dialog and give it an new filename, all annotations will be saved correctly.
Comment 1 null 2018-01-19 00:32:32 UTC
Thanks for the report, but I'm not really sure what you are doing…

So you are saying that when you "Save As" to a new filename, annotations are gone, while when you "Save" to a new filename, annotations are kept? And if you are using Okular 1.2.3, why would it warn you about unsaved changes in a PDF? (That version normally saves changes automatically to an XML file.) What type of document is this? Is it located in your home folder? Is it created by another process like pdflatex, changing it behind your back? Does it happen for every PDF or only for specific ones?

Note that annotation saving was changed significantly for Okular 1.3. Now it works just like in a text editor via "Save" if you have unsaved changes. Please upgrade to that version and tell us if your problems persist. If so, provide clear steps to reproduce the problem (bullet points with as much detail as possible are best) and mention what happened vs. what you expected to happen.
Comment 2 w_thal 2018-01-19 10:41:28 UTC
Hallo Henrik,
thanks for your reply!
Obviously there has been another update to okular, wich I was not aware of, so
I reported the wrong version number. Since that I tested the behaviour again and have to say that saving annotions work now with version 1.2.3.

So let me say a big SORRY for the confusion.

I think this report can be closed, but I want to share my testing results as follows:


After adding some annotations ...
--> closing Okular --> no message --> annotation in okular yes, but not in other application

--> STRG + s (wich is now "save as") --> "save as" dialogue appears and saving to same name either to different name will work and annotions are in okular and other apps

--> STRG + SHIFT + s (wich is now "save another copy") --> "save as" dialogue appears, but can't overwrite, only new filename works --> annotation wont appear in okular nor in other apps, if I then close okular, it will show "unsaved changes dialogue and I am able to save to a new file with annotations.


Hope that this is understandable ;-)

Thanks again for your effort an have a nice weekend
Werner

PS: I am doing all this with standard PDF dokuments, working with dropbox on different devices
Comment 3 Michael Weghorn 2018-01-19 11:32:25 UTC
Thanks for checking again and the quick reply.

Note that, as Henrik mentioned, the way how annotations are saved has significantly changed with Okular 1.3.

So for example, the first case you described 

(In reply to w_thal from comment #2)
> --> closing Okular --> no message --> annotation in okular yes, but not in
> other application

no longer behaves like that with Okular 1.3. You will get a message/dialog now that asks you whether you want to save changes.
Comment 4 w_thal 2018-01-22 12:07:40 UTC
(In reply to Michael Weghorn from comment #3)
> Thanks for checking again and the quick reply.
> 
> Note that, as Henrik mentioned, the way how annotations are saved has
> significantly changed with Okular 1.3.
> 
> So for example, the first case you described 
> 
> (In reply to w_thal from comment #2)
> > --> closing Okular --> no message --> annotation in okular yes, but not in
> > other application
> 
> no longer behaves like that with Okular 1.3. You will get a message/dialog
> now that asks you whether you want to save changes.



Thank you for the information.
Werner