Write generated PDF file to the Data Table from Client code

Hello Dear Forummers,

I used to generated PDF file according Mark’s suggestions - Thank you Mark it is working perfect!

but now I want to sent this PDF by Anvil’s email system
so that I want to write PDF file to Database table

How Can I write generated PDF file to the Data Table from Client code?

Every FastPDF Document has a to_blob method which returns an anvil BlobMedia object with the type pdf.

You can send that per email or save it in an anvil data table.

1 Like

Perfect Mark - it is working ! Thank you !

1 Like

If this solved it for you - its helpful for others to check the “solution” checkbox on the post. :+1:

2 Likes