Shoot, I was just planning to use this for generating PDFs out of a URL on nodejs. Does anyone know of any other library / module out there that is good at this?
chromium-browser --headless --disable-gpu --print-to-pdf=output_file_name.pdf file:///path/to/your/htmlSo this does work for very basic pdf printouts, but so far phantom is the only tool that offers full control over the PDF output. Even down to things like margins, paper size, etc.
[1]: https://developer.mozilla.org/en-US/Firefox/Headless_mode
[2]: https://developers.google.com/web/updates/2017/04/headless-c...