0👍
AppWrite can actually help you achieve this goal but you’ll need to approach it in a different way.
The Process
-
You’ll need to create a function inside your AppWrite engine.
-
In the function and you can use Node, PHP, Dart, Python, and more to write the logic that will do the PDF manipulation.
-
At the end of the function return a download (see more on that in the end) link to the Vue instance.
-
Inside your Vue side redirect the user to the download link which contained the headers required for forcing file downloading.
Direct URL to file
In order to get a direct URL to a file, AppWrite has two methods inside the SDK that can help you to give a user direct access.
download
– To generate a download link create a link as follow:
https://your-app-write/v1/storage/buckets/[BUCKET]/files/[FILE]/download?project=[PROJECT_ID]
view
– To generate a viewable (direct access) link as follow:
https://your-app-write/v1/storage/buckets/[BUCKET]/files/[FILE]/download?project=[PROJECT_ID]