What's the best way to convert HTML to PDF in 2018?
1–5 of 5 posts
Re: What's the best way to convert HTML to PDF in 2018?
#2YMMV.
Re: What's the best way to convert HTML to PDF in 2018?
#3So not getting a mention are htmldoc, pandoc, LibreOffice in headless mode, and probably several others. I routinely use htmldoc and it's perfect for my needs. YMMV.
It does seem like htmldoc doesn't support CSS which is going to be a blocker for a lot of people.
Pandoc is definitely worth considering but I didn't include it as I believe it just delegates it's PDF rendering to a configurable engine like LaTeX, weasyprint or wkhtmltopdf.
Re: What's the best way to convert HTML to PDF in 2018?
#4FetchPDFs focus is on the template designer, which can be linked to or embedded to allow customisation of your outputs at scale (e.g. if you need to provide all of your users with the ability to customise their PDF outputs from your service).
Re: What's the best way to convert HTML to PDF in 2018?
#5So not getting a mention are htmldoc, pandoc, LibreOffice in headless mode, and probably several others. I routinely use htmldoc and it's perfect for my needs. YMMV.
Thanks, I wasn't aware of htmldoc or that LibreOffice had a headless mode. It does seem like htmldoc doesn't support CSS which is going to be a blocker for a lot of people. Pandoc is definitely worth considering but I didn't include it as I believe it just delegates it's PDF rendering to a configurable engine like LaTeX, weasyprint or wkhtmltopdf.
In my context I'm producing documents that need to be displayed in both contexts, so I steer clear of things that are primarily HTML.