PDF Printing issues - Header not appearing and Mis-alignment on Frappe ERPNext

PDF Printing issues - Header not appearing and Mis-alignment on Frappe ERPNext

 · 1 min read

Aprenda a criar PDFs acessíveis - WPT

Frappe PDF printing issues, mis-alignment etc


sudo apt-get install -y xfonts-75dpi

sudo wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-2/wkhtmltox_0.12.6.1-2.jammy_amd64.deb


sudo dpkg -i wkhtmltox_0.12.6.1-2.jammy_amd64.deb

wkhtmltopdf -V

must be ( wkhtmltopdf 0.12.6.1 (with patched qt) )


Also, make user you have correct host_name in site_config ( "host_name": "https://mysite.erpgulf.com:1203", )


Often , using Bootstrap grid formatting for print-format cause issue. try with a standard print format and confirm this issue . Please read this thread https://discuss.frappe.io/t/pdf-generation-not-working-on-some-sites-but-fine-on-others-for-custom-print-templates/83720/3 )



#ERPNextTips


Cloud support

Cloud support team provides hosting related support and technology updates. Cover technology like cloud printing, Cloud PBAX, VoIP, Kubernetes, Ubuntu, Linux etc. Contact us on support@ERPGulf.com

Add a comment
Ctrl+Enter to add comment

I
Irfan 1 year ago

Hi The version installed for wkhtmltopdf is 0.12.6.1. But if i send an email than below error is received

frappe.throw(_("PDF generation failed because of broken image links"))

Images are on letter head which is marked as default. Can you please guide me any solution?