you can try this app https://github.com/Ponnusamy1-V/frappe-pdf
this will not work in docker setup like frappe cloud.
it needs google-chrome to be installed in the server, if that suits you, then you can give it a try.