For anybody who may come across this question today:
Gotenberg is a useful utility that uses Docker to provide a stateless API for converting HTML, Markdown, and Office documents to PDF. It supports unoconv for DOC conversion.
I'm also the inventor of gotenberg-js-client, a JS/TS client for Gotenberg.
You are welcome to use it:)
Gotenberg currently has a new website: https://gotenberg.dev.