roadmap icon indicating copy to clipboard operation
roadmap copied to clipboard

Migrate away from the WickedPdf gem and WkHtmlToPdf package

Open briri opened this issue 2 years ago • 2 comments

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.

briri avatar Apr 20 '23 15:04 briri

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?

nicolasfranck avatar Aug 30 '23 06:08 nicolasfranck

@briri and @nicolasfranck - thanks for pointing this out and thanks for your suggestions. We'll look into it later in September.

dsisu avatar Sep 01 '23 15:09 dsisu