I\'ve been using htmldoc for a while, but I\'ve run into some fairly serious limitations. I need the end solution to work on a Linux box. I\'ll be calling this library/utili
Here is a nice easy-to-install version of headless Chrome:
https://www.npmjs.com/package/chrome-headless-render-pdf
Unlike "standard" headless chrome, this does not show the annoying auto-generated headers and footers!
Or there is unoconv (which uses LibreOffice behind the scenes) can make pdfs from html:
unoconv -f pdf mypage.html
You can install it on most Linux flavours via the package manager, e.g. apt-get install unoconv
That's nice and easy for simple files. If you need javascript of css support, then use headless Chrome.