Migrate away from the WickedPdf gem and WkHtmlToPdf package
The WkHtmlToPdf package is no longer being maintained (the GitHub project has been archived and it's last official release was in 2020. There are lots of open issues on the project and they will continue to grow as time passes.
Prawn is an alternative out in the space, but it has its own DSL (as opposed to converting HTML to PDF) so there will be a learning curve. Here is the manual and it looks a bit intimidating especially when thinking about how our PDFs do not follow a single standard format.
We could also explore some of the non Ruby/Rails options out there that make use of Headless Chrome. This would require having headless chrome installed on your servers. Here is an article that discusses it
If anyone finds other options out there, then please comment and share.
You can also search for a "docx to pdf" option. At least there is a docx generator, which can generate a presentation that has the notion of a "page" (in contrast to HTML). Word and LibreOffice have docx-to-pdf conversion built in.
How many times we people actually need a pdf, knowing that is a read only version, while you can still edit the docx version, and then convert to pdf?
@briri and @nicolasfranck - thanks for pointing this out and thanks for your suggestions. We'll look into it later in September.