I recently found out that a Norwegian government agency open sourced a micro service for generating PDF
I haven't used it, but it looks promising. You create templates based on html (Handlebars templates), which should make it easy to get started.
https://github.com/navikt/pdfgen
It may be worth a look