PDF Generator Version Fixing in Frappe ERPNext

PDF Generator Version Fixing in Frappe ERPNext

Table of Contents

PDF Generator Version Fixing in Frappe ERPNext

Clicking the provided link leads to https://wkhtmltopdf.org/downloads.html

Invalid wkhtmltopdf version

atuld@fedora:~/Desktop/AtulyaWorld/aw-management$ wkhtmltopdf --version
wkhtmltopdf 0.12.6

I guess it needs, with patched QT version

alt text

They have added information about patched QT thing.

Reduced Functionality:
  This version of wkhtmltopdf has been compiled against a version of QT without
  the wkhtmltopdf patches. Therefore some features are missing, if you need
  these features please use the static version.

This is the output from terminal.


I can help you install the correct version of wkhtmltopdf on Fedora to resolve the printing issues with Frappe. The error message indicates you’re using a version compiled without the necessary Qt patches, which is why you’re missing essential PDF generation features.

Here are the steps to install the patched version:

  1. Download the static binary with Qt patches:
# For 64-bit systems
wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-2/wkhtmltox-0.12.6.1-2.almalinux9.x86_64.rpm

# Or for older systems, try:
wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox-0.12.6-1.centos8.x86_64.rpm
  1. Remove the existing version:
sudo dnf remove wkhtmltopdf
  1. Install the downloaded RPM:
sudo dnf install ./wkhtmltox-0.12.6.1-2.almalinux9.x86_64.rpm

Now it is working!

Tags :