Brainstorming ways to solve this problem

Kinda unrelated to filament, but I am going to use this feature in a filament panel so I might as well just ask here:

I am looking for a way to generate PDFs based on (1) data from my model and (2) a pre-made design. kinda like how udemy and other course sites generate custom certificates.

Here is an idea I just came up with: somehow make a bunch of templates in html & css with some parts of it being customizable then allow the user to customize the template (e.g. change the logo, color palette, etc..) and finally export it to pdf.

but I have no idea how that would work in practice.

if anyone has any better ideas/ something similar implemented in laravel or filament / a totally different idea let me know!
Was this page helpful?