You can generate PDFs using val functions by using an external library like jsPDF.

https://www.val.town/embed/neverstew.helloWorldPDF

Here’s a more comprehensive example that builds an invoice.

Screenshot 2023-06-26 at 11.56.47.png

https://www.val.town/embed/neverstew.examplePDF