How to convert Html files to Pdf?
Check out wkhtmltopdf. It uses the Webkit layout engine (as used in Safari, Chrome, etc.).
Consider the fact that no two browsers can render that HTML completely identically for a moment, and then realize that you're never going to get it.
- Install a virtual printer driver that saves print output as PDF
- Open HTML in browser
- Printo to virtual printer