Not knowing anything about PDF generation (but will need to soon), what can these libraries do that you can't do with something like a puppeteer web service and create PDFs with HTML/CSS?
"Just run it as a container" is a bit of an industry cop-out for making stuff unnecessarily complex.
Something like this is likely much more efficient than launching a whole browser for each PDF.