Is there a way to generate a Payslip? I want to edit my payslip but this keeps getting in my way
Hi there,
Did you do what the error message instructed you to do?
Fix for “wkhtmltopdf 0.12.x (with patched Qt) required” Error
If you get this error while trying to print or generate PDFs in Frappe/ERPNext, it means the correct wkhtmltopdf version is not installed.
Steps to Fix
- Remove old version
sudo apt remove wkhtmltopdf -y
- Install required dependencies
sudo apt install -y xfonts-75dpi xfonts-base fontconfig libxrender1 libxext6
- Download and install the correct wkhtmltopdf (with patched Qt)
For Ubuntu 22.04 (Jammy):
wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-3/wkhtmltox_0.12.6.1-3.jammy_amd64.deb
sudo apt install -y ./wkhtmltox_0.12.6.1-3.jammy_amd64.deb
For Ubuntu 20.04 (Focal), replace jammy with focal in the file name.
4. Verify installation
wkhtmltopdf --version
You should see:
wkhtmltopdf 0.12.6 (with patched qt)
- Restart Frappe
cd ~/frappe-bench
bench restart
