Bug 127664 - UX: message "PDF was saved ..." when saving document as PDF
Summary: UX: message "PDF was saved ..." when saving document as PDF
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: iOS Editor (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: Other iOS
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-09-20 13:28 UTC by Nicolas Christener
Modified: 2020-04-14 20:33 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Christener 2019-09-20 13:28:08 UTC
Description:
Saving a file as PDF on iOS works but there is no user feedback about the successful export. 

I think it would be good to have a message that pops up and let's the user know that the PDF was saved in the current directory.

Steps to Reproduce:
1. Open a document with the iOS app
2. Use the export to PDF function to save it as a PDF

Actual Results:
There is no user feedback that the file was exported or where the file was saved.

Expected Results:
Show a message with something like.

"The doucment was saved as PDF in the current working directory".


Reproducible: Always


User Profile Reset: No



Additional Info:
Comment 1 How can I remove my account? 2019-10-01 13:16:13 UTC
But the PDF is not exported to the current directory (the directory from which the document being edited was opened), but in the app's own directory in "On My iPad". I tried saving it in the document's directory but that did not work, the app was not allowed to create a new arbitrary file in that location.

Especially for cloud-based storage providers like iCloud Drive or Nextcloud the app doesn't know when the document has completely been stored there. The API that writes it stores it first in some hidden cache location, from which the system then copies it to the cloud storage.
Comment 2 Nicolas Christener 2019-10-01 13:36:10 UTC
Ah sorry; I tested from a file which was save on "On My iPad" and therefore though it's exported to the current directory :)

Anyway. I think having the exported file in the app's own directory is perfectly fine! Still showing a message saying where the file was stored (and with what filename) would be an importand user feedback.
Comment 3 How can I remove my account? 2019-10-01 13:51:26 UTC
A problem in telling the user where the document got stored is that the URL as seen by the code is something like file:///var/mobile/Containers/Data/Application/B9BC7BAC-D728-4D41-B4A5-CDF36AD3AE0C/Documents/foobar.pdf . Obviously that can't be displayed as such to the user, it is gibberish. That is "foobar.pdf" in the app's ("Collabora Office") folder in "On My iPad". But how to get the translated name of "On My iPad"? Sure, we can hardcode some translations based on experimentation, but it would be nicer t get it programmatically.
Comment 4 Nicolas Christener 2019-11-04 09:46:12 UTC
I just had some more users complaining that "nothing happens" when the "Export as" function was used.

Could we for now use "hardcoded" strings as a workaround?

EN:         "On My iPad"
DE (DE_CH): "Auf meinem iPad"

Thanks a lot
Comment 5 Nicolas Christener 2020-04-14 17:45:32 UTC
This issue is now fixed in 4.2.4 (50) where a file dialog is shown and the user can choose where to save the file and also change the name.

I believe this issue can be closed now.

Thanks a lot to Collabora and especially Tor for taking care of this issue!