DEV Community

Discussion on: DocRaptor vs. WeasyPrint: A PDF Export Showdown

Collapse
 
davel_x profile image
davel_x

If you have a Docker environment (k8s for example), I found that thecodingmachine.github.io/gotenberg is a pretty convenient solution to convert HTML from a file (with some tweaks for external resources) but also markdown and office files.
For converting from URL there's a waitDelay so I think - never used that way, I tend to send HTML directly - you can wait for JS to render before converting.
Ans working with Node.js (single threaded) it's nice that there's a webhook callback option.