Reasonable automatic HTML to PDF conversion (in UNIX/Linux environment) [closed]
Have you seen wkhtmltopdf? Can't say how well it works personally, but it seems like exactly what you need. Only problem may be, with this and any 'browser automation' solutions, that it will pick up the print stylesheet rather than the screen display one so the PDF may not be exactly what you see on screen.
Try chm2pdf with python-beautifulsoup.