github.com/alexferrari88/lazypress (go): lazypress converts HTML pages to PDF looking just like they would render in the browser. Under-the-hood, it is using Google Chrome (via github.com/chromedp/chromedp) to load the HTML so the PDF looks just like if you would print it from the browser. It also comes with a built-in HTML sanitizer (uses github.com/microcosm-cc/bluemonday). You can use this code as a library, or you can run it as a server which will spit out PDFs when you send HTML to it.
Keywords: html-to-pdf|pdf