Do people have any recommendations for PHP scripts/classes which can convert HTML to PDF? Ideally I want to convert existing remote pages (on the same site, but they're dynamically generated so I can't just grab the file from the disc) to PDFs, rather than generating a PDF from scratch. I've found a few projects on the Web which claim to be able to do this, but many of them are out of date (some haven't been changed since 2006, which makes me worry about security holes) and/or appear to have been abandoned by their developers.
Quick google search revealed this: digitaljunkies.ca/dompdf/ It appears to be active since the last post was in may this year. You may want to try it out.
I've tried dompdf, unfortunately it doesn't seem to be able to cope with nested tables, and the site I'm trying to get it to work with has lots of them.
According to SourceForge, html2pdf hasn't been updated for over 4 years, so I doubt it is particularly secure.