Generate a PDF from assets in kirby

Has anyone made a plugin to generate a pdf from kirby? I would want to combine images and text from a folder and make them available for download as a single .pdf.

Or do you know of any resources to get started on this?


1 Like

Nice idea for a extension. I think a good idea is to use internal Kirby objects ($page->content() to get the $content object) to get the HTML code. So you can create the PDF on the fly. The next steps is a cache solution for the generated PDFs. And many parameters for the methods. :stuck_out_tongue_winking_eye:

Example library:

That would be awesome !
I’ve been looking for something like that for a while…

@fanningert dompdf looks cool…
Has anyone tried to integrate it with Kirby ?
Any luck ?