Couple of things.

You had the same thread more than once and I have closed the other thread.
Also you had the thread in PHP and I don't know from where you thought it could be in PHP because as it looks you are looking for converting to PDF and not looking to code something for conversion