richdocuments icon indicating copy to clipboard operation
richdocuments copied to clipboard

Add option to overwrite in export to PDF dialog

Open pmarini-nc opened this issue 7 months ago • 3 comments

Is your feature request related to a problem? Please describe. When I export a document (typically would be odt to pdf), and the document already exists, an increasing integer number is added as suffix to the exported document name.

Describe the solution you'd like When I export a document (typically would be odt to pdf), I'd like to be offered the option to overwrite the document if it already exists.

Describe alternatives you've considered Delete the existing document before re-exporting.

Additional context Multiple copies of the same file makes the working environment harder to work with. If I delete the existing document, I need to go to trash if I have to recover it. Nextcloud has a good versioning system that elegantly solves the situation in which I need to restore a previous version of the file that makes useless the rename action that happens now.

I'm not sure however, if this request belongs here or it is best to move it in the Collabora Online repo.

pmarini-nc avatar May 15 '25 10:05 pmarini-nc

After giving this a quick test, I would actually consider this a bug from my perspective. Even if you export a document as a PDF to the same path as a previous PDF, it saves it as a copy rather than to the actual path you specified. If it is going to increment the name and save as a copy, it should reflect that within the save path dialog at least. And saving to the same path as a previous PDF should replace it after asking for confirmation.

I still need to dig deeper and figure out if it is an upstream issue with Collabora, but I think we can probably solve it from our side if I had to guess.

elzody avatar May 15 '25 15:05 elzody

The save as dialog should be rendered by richdocuments so we can add conflict handling for that I guess.

juliusknorr avatar May 15 '25 16:05 juliusknorr