linuxmint / xreader

A generic Document Reader
GNU General Public License v2.0
211 stars 59 forks source link

Closing a PDF after editing form content should show a dataloss warning and hint to "Save a copy" #650

Open jondo opened 1 week ago

jondo commented 1 week ago

Distribution

Mint 21.3

Package version

4.0.2

Frequency

Always

Bug description

When I want to fill a PDF form, then save it for sending per email, I need to save the filled form with "Save a copy" before sending. There is (potentially massive) dataloss risk in closing the filled form accidentally before saving, because one expects (similar to e.g. LibreOffice) to get a Save dialog when closing.

Steps to reproduce

Download and open https://web.archive.org/web/20180729222509if_/http://www.aloaha.com/wp-content/uploads/2016/07/statementidentify.pdf, then fill the "First Name" field. Now close the window, experiencing dataloss.

Expected behavior

When the window is closed after editing PDF form fields, a dialog box should pop up: "Some form fields were changed.", with answer buttons "Save a Copy ..." and "Don't save."

Additional information

No response