I needed PDF copies of invoice pages for bookkeeping. The usual answer is Puppeteer, which means installing Chromium on your server, keeping it patched, and giving it a few hundred MB of RAM. On a small VPS that hurts. So I put headless Chromium behind a plain HTTP endpoint and now PDF generation is one GET request.
curl --get "https://snappdf.dedyn.io:8444/v1/pdf" \
--data-urlencode "url=https://en.wikipedia.org/wiki/PDF" \
--data-urlencode "format=A4" \
-o page.pdf






