You are viewing limited content. For full access, please sign in.

Question

Question

Any plans to ditch WKHTMLTOPDF?

asked on March 27, 2019

Forms uses wkhtmltopdf to generate PDFs from forms.

However, wkhtmltopdf has a lot of issues. It is based on a very outdated version of the Webkit rendering engine, and the library itself is barely being maintained (it has more than 700 reported bugs as of this writing). Most of the modern features in HTML 5 and CSS 3 (such as flexbox) are not supported.

This creates many problems for Laserfiche Forms administrators and solution providers. As one of the latter, we spend enormous amounts of time trying to customize forms so that the look-and-feel of the stored PDF matches that of the actual form. Sometimes this is a legal requirement (e.g. many government processes) and sometimes it's a branding requirement. Either way, wkhtmltopdf ends up throwing severe hurdles in our way in almost every project.

So, feature request: please ditch wkthmltopdf in favor of a modern PDF rendering tool, such as Google's Puppeteer.

Thanks!

8 0

Replies

replied on March 27, 2019

You're right, it is getting pretty outdated. We can look into better alternatives. 

6 0
replied on March 27, 2019

While you're at it, I'd love to have a "preview" mode of some sort that would allow us to test how the PDF/TIFF copy looks without having to submit a form. wink

10 0
replied on June 10, 2019

Support preview read-only form to test how pdf/tiff looks like is added to our to do list.

3 0
replied on May 4, 2021

Is this looking likely? Should we anticipate moving away from wkhtmltopdf in the future?

0 0
replied on May 4, 2021 Show version history

@████████ This has already been done. They switched over to Puppeteer Sharp as of version 10.4.3

List of Changes for Laserfiche Forms 10.4.3 - Knowledge Base

 

One thing to note that I don't like as much about Puppeteer is that radio and checkbox elements are rendered in a way that makes them hard to see.

By default they are drawn as disabled inputs which makes them even lighter. I tested JavaScript to remove the disabled attribute and it helped some, but in the end I used CSS to overly something that's easier to see.

Checkboxes and Radio Buttons Forms PDF/TIFF Generation - Laserfiche Answers

3 0
You are not allowed to follow up in this post.

Sign in to reply to this post.