How can I convert a web page to a PDF?

I have PHP file that generate a report from the database, and I want this page to be converted into PDF File, so I can be save and print. How to convert web page to PDF? Is there any tool available or a PHP script?

I’ve used Kartik’s Mpdf

demo page

Thanks for sharing

You can use browser plugin/addons to do it. In chrome you can use "Save as PDF" or "Print Friendly & PDF".