# Generate a PDF from assets in kirby

**URL:** <https://forum.getkirby.com/t/generate-a-pdf-from-assets-in-kirby/791>\
**Category:** Plugins\
**Created:** [April 13, 2015, 7:40pm UTC](https://forum.getkirby.com/t/generate-a-pdf-from-assets-in-kirby/791 "2015-04-13T19:40:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![max](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/max/32/129_2.png) [@max](https://forum.getkirby.com/u/max)\
**Post date:** [April 13, 2015, 7:40pm UTC](https://forum.getkirby.com/t/generate-a-pdf-from-assets-in-kirby/791/1 "2015-04-13T19:40:15Z")

</div>

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?

Thanks

---

<div class="post-metadata">

**Author:** ![fanningert](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/fanningert/32/141_2.png) [@fanningert](https://forum.getkirby.com/u/fanningert)\
**Post date:** [April 13, 2015, 8:23pm UTC](https://forum.getkirby.com/t/generate-a-pdf-from-assets-in-kirby/791/2 "2015-04-13T20:23:51Z")

</div>

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. 😜

**Example library:**

> **[dompdf/dompdf](https://github.com/dompdf/dompdf)**
>
> HTML to PDF converter for PHP. Contribute to dompdf/dompdf development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![tart2000](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/tart2000/32/518_2.png) [@tart2000](https://forum.getkirby.com/u/tart2000)\
**Post date:** [August 1, 2015, 4:20pm UTC](https://forum.getkirby.com/t/generate-a-pdf-from-assets-in-kirby/791/3 "2015-08-01T16:20:36Z")

</div>

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 ?

Cheers
