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:
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.
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.
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.
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
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!