How to convert Html files to Pdf?
Solution 1:
Check out wkhtmltopdf. It uses the Webkit layout engine (as used in Safari, Chrome, etc.).
Solution 2:
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.
Solution 3:
- Install a virtual printer driver that saves print output as PDF
- Open HTML in browser
- Printo to virtual printer