# Php \>\> xhtml \>\> pdf

**URL:** <https://forum.kirupa.com/t/php-xhtml-pdf/306409>\
**Category:** programming\
**Created:** [March 14, 2010, 11:48pm UTC](https://forum.kirupa.com/t/php-xhtml-pdf/306409 "2010-03-14T23:48:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ruiganga](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/ruiganga/32/3679_2.png) [@ruiganga](https://forum.kirupa.com/u/ruiganga)\
**Post date:** [March 14, 2010, 11:48pm UTC](https://forum.kirupa.com/t/php-xhtml-pdf/306409/1 "2010-03-14T23:48:36Z")

</div>

HI

I have a PHP script that generates a document. At the end of the document I want to convert it to PDF exactly like it is, not less, not more.

So, in the end I have a XHMTL file and just want to be able to clique a button and have it in PDF. All using server side script, may be PHP.

Anybody know any script that can do this?

Thanks 🙂
