Printing a page as a .pdf

I have a requirement to produce a report, which I can construct quite nicely using components, and code. The report needs to be a .pdf, is there a clean way to print the Anvil form on-screen, as a .pdf?

That was added recently. There’s a forum post somewhere about it.

There’s quite a lot under https://anvil.works/forum/search?q=pdf , but it’s there.

Going to https://anvil.works/docs/ and using the Search field at the top, led me to more than half a dozen entries, the most relevant of which seems to be https://anvil.works/docs/media/creating_pdfs.html

I have to say, Search has really improved immensely since it was first added. No one should be shy about using it anymore.

4 Likes

Here’s the introductory page you wnt:

And here’s the reference documentation:

Quickstart: https://anvil.works/docs/media/quickstart-pdfs

Reference: https://anvil.works/docs/media/creating_pdfs

4 Likes