Thanks for the recommendation. Yes, a native Wappler PDF generator will be another great addition to the application ![]()
I tried to download the pdf again on a mobile device and it worked. I had some JS and CSS libraries in the html head tag that were causing the issue.
I have also used this recommendation from @ben to add a button that provides users another option to print / save as a pdf. It is working on all types of devices.
I will be binding components on the PDF to a database. There are a couple of improvements I would like to make in the code:
- Dynamically update the Exported file name with a couple of field values from the database - use a variable in the JS function and bind it to fields in the database to always generate a unique pdf filename
- Open the PDF automatically on devices after a download has been completed
Could someone please assist me if something similar has been done in their projects?