Can anyone recommend a good api for generating pdf documents? I'm thinking of something that you can provide with a template (maybe html) and a model and it spits out a pdf document. I know it's not too difficult to write one's own, I'm just curious.
Check out carbone.io
It’s not super powerful but does the trick for basic stuff. They have both self hosted and a cloud/paid version.
pspdfkit.com might also have something for rendering PDFs as a service.