Question: I want to add save button in app bar and when I click on that button, app will automatically save file to folder specified in code #12
Unanswered
youna12345
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Question Description:
I am using your example version 2.2.1.
I want to add save button in app bar and when I click on that button, app will automatically save file to folder specified in code (folder name/file name) so that I can get saved file path instantly send via API to save edited file on server.
Please guide me
Answer:
You can implement custom UI in Flutter and use the corresponding API to save the PDF document to a specified path. At the same time, the functions at the top of CPDFReaderWidget can also be accessed through API calls. Please refer to the cpdf_reader_widget_controller_example.dart example. Below is a sample showing how to save the document to a specified location and retrieve the save path.
Beta Was this translation helpful? Give feedback.
All reactions