If you only ever generate PDFs on the server, its proboably better to just stick to fpdf or something like that. Fast PDF is interesting if you need to also create pdf’s client side.
How does it work?
Its basically just a wrapper around jspdf and fpdf2 with a common interface and a bunch of helper function in regards to anvil. Depending on where you render the pdf client or server it will build your template with the library for the respective plattform.
Sure - I used anvil-extras free of charge for long enough.
I pushed the code to a public git repo with MIT licence.
Here is the original Dependency as an Anvil clone link.
Two more things:
The latest release v0.7 is stable and we use it ourselfs in production. It is however possible that a pdf rendered server side can look slightly different from the client version in some edge cases.
Single source of truth will remain the anvil repo for now. Because we would first need to incorporate the git action that pushes to anvil in our release pipeline. And I’ll need some time & reason to prepare and communicate that.
I imagine it would be possible to render forms and then merge it with the fast pdf result but I have never tried.
In fact - the whole point of this lib is to move away from the form rendering in order to improve speed.