I’ve only just had a need for this, but it has really made my life easy!
https://anvil.works/docs/media/creating_pdfs
Cheers!
I’ve only just had a need for this, but it has really made my life easy!
https://anvil.works/docs/media/creating_pdfs
Cheers!
Can confirm I also love this - PDF quotes and invoices are now a breeze!
Have you got any examples/clone links that you’re willing to share? I’ve struggled to get the formatting of the anvil material design theme to output good looking pdfs.
If you start a new post with an example a specific issue, folks here may be able to help.
Thanks @alcampopiano, no specific issue, I was just curious of how others had been using the pdf function to good effect.
I’m not using the material theme for my current app, just the basic one. If I do I will let you know how it goes. Also, if I get a moment I will try and decouple an example from my current project (don’t hold your breath though, I’m buried under my job lists!)
But for the basic theme, it just follows the form. I use column panels, flow panels, labels and data grids. The PDF appears exactly as the form.
This suggests using a plain HTML form as the base for PDFs, and any custom components you might build for it.