# Creating a PDF using PHP with dynamic content from a database

**URL:** <https://forum.kirupa.com/t/creating-a-pdf-using-php-with-dynamic-content-from-a-database/227261>\
**Category:** programming\
**Created:** [May 29, 2007, 12:40am UTC](https://forum.kirupa.com/t/creating-a-pdf-using-php-with-dynamic-content-from-a-database/227261 "2007-05-29T00:40:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Flash\_Man1](https://avatars.discourse-cdn.com/v4/letter/f/8797f3/32.png) [@Flash\_Man1](https://forum.kirupa.com/u/Flash_Man1)\
**Post date:** [May 29, 2007, 12:40am UTC](https://forum.kirupa.com/t/creating-a-pdf-using-php-with-dynamic-content-from-a-database/227261/1 "2007-05-29T00:40:31Z")

</div>

Hey all,

i am building a website where i have dynamic content which changes on a page refresh i want the user to click my download button and i want that to create a PDF File with the dynamic content in it…so that the user can print a (printer friendly version) or is there another way i can do this??

I have found some tutorials on creating a PDF using php but was a little confusing with how to get the dynamic content into it.

Cheers in advance 🙂
