Gotenberg

https://gotenberg.dev/docs/routes

We use it in production for pdf exports and reports generation.

Just spin up a docker container and use a client library or REST API to send html data.