AppWrite offers a solution to help you reach your goal, but it requires a different approach.
The Method
To start, you must create a function within the AppWrite engine.
In this function, you can utilize Node, PHP, Dart, Python, or other languages to implement the necessary logic for PDF manipulation.
Upon completion of the function, provide a download link (details at the end) to the Vue instance.
Within your Vue application, direct the user to the download link containing the appropriate headers for file downloading enforcement.
Accessing Files Directly
To obtain a direct URL to a file, AppWrite provides two SDK methods that grant users immediate access.
download
- To generate a download link, construct a link as shown below:
https://your-app-write/v1/storage/buckets/[BUCKET]/files/[FILE]/download?project=[PROJECT_ID]
view
- To generate a viewable (direct access) link, use the following format:
https://your-app-write/v1/storage/buckets/[BUCKET]/files/[FILE]/download?project=[PROJECT_ID]