PDF generate local

“In Frappe, I generate a PDF that works correctly in the local environment, but it does not work properly on the server, even though both are using the same version.”

Check wkhtmltopdf version

Use wkhtmltopdf qt patched

The wkhtmltopdf version is the same on both the local and server environments, but the local system is running Ubuntu 22, while the server is running Ubuntu 24 only.

Use wkhtmltopdf 0.12.6-1 patched qt – This Version is Also Works On Ubuntu 24.

try
bench --site yourserver set-config host_name https://yourserver