Quickest in-house HTML to PDF solution
You can find some online APIs and use the free tier to test them, but you can make them your own. So without any further instructions, here is a recipe.
Run headless chrome on your Mac:
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome \
--headless \
--remote-debugging-port=9222 \
--disable-gpu \
--disable-translate \
--disable-extensions \
--disable-background-networking \
--safebrowsing-disable-auto-update \
--disable-sync \
--disable-default-apps \
--hide-scrollbars
--metrics-recording-only \
--mute-audio \
--no-first-ru
Go get this library cdp and run attached example. Done 🙂