Save As dialog should remember filename
Currently using Document Viewer [Evince] 3.28.4-0ubuntu1[OoPdfFormExample.pdf] on Ubuntu 18.04.2 LTS Also installed and checked Evince 3.30.2, and it has the same issue
Background: For my timesheet I fill in a weekly editable PDF, so at the start of the week...
To reproduce
- Open PDF, edit some fields
- Press Crtl+s (bringing up the Save dialog)
- Enter a new name and press Save (save happens correctly to file with new name)
- Problem: Originally opened PDF stays open...
- Make more changes
- Press Ctrl+s (bringing up the Save dialog)
- Hit Enter / Save button overwrites originally opened PDF, NOT new file created in step 3
Despite not being a C developer, I had a look at the code (in the 3.28.5 branch), and guess the link to the file is probably not updated at save
I gather the link is set here at load:
backend/pdf/ev-poppler.cc Line 978, in pdf_document_class_init function
ev_document_class->save = pdf_document_save;
And I guess it should be updated here somewhere when saved [if it has changed] maybe in this function
backend/pdf/ev-poppler.cc Lines 245-247
pdf_document_save (EvDocument *document, const char *uri, GError **error)
I've uploaded an example editable PDF file