Make pdf using php

My web page has the “normal layout”: wrapper, header, sidebars, content area and footer.

I want to place a button in the content area. Clicking that button will convert the content area into a pdf file.

I have tried file_get_contents, but it creates a pdf with some html and php code, basically the first line of the page. I want an pdf that looks the same as the web page.

Try our reasonable priced product PD4ML. There is a couple of words about it in another thread:

PD4ML/PHP home:


there’s free versions of PHP / HTML to PDF out there just Google it.