تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
8973 أدوات العرض

Hi All,


it seems my issue for wkhtmltopdf is quite wierd.


CentOS7 have wkhtmltopdf version 0.12.1-1.el7, i can get the html just fine but when i switch it to pdf its not working i get 0 bytes.


I've seen this behavior with  others , but the solution was to upgrade to 0.12.1-1.el7. Although im already at this version ahs anyone seen this behavior?


Thanks

الصورة الرمزية
إهمال
أفضل إجابة

How I solved that problem with Centos 7:


wget http://download.gna.org/wkhtmltopdf/0.12/0.12.1/wkhtmltox-0.12.1_linux-centos7-amd64.rpm

rpm -ihv wkhtmltox-0.12.1_linux-centos7-amd64.rpm

All other versions didn´t worked correct. Please deinstall the "centos"-version of wkhtmltox.


Cheers

Stephan


الصورة الرمزية
إهمال
أفضل إجابة

Please try this one

Solution:

Please follow this steps

1) Download wkhtmltopdf version from wkhtmltopdf.org depend on your system arch (32 or 64 bit)

wget wget \http://downloads.sourceforge.net/project/wkhtmltopdf/0.12.1/wkhtmltox-0.12.1_linux-trusty-amd64.deb

2) Install the package using commnad :

sudo dpkg -i wkhtmltox-0.12.1_linux-trusty-amd64.deb

3) Copy binary or wkhtmltopdf to /usr/bin location from ./usr/local/bin use command

sudo cp /usr/local/bin/wkhtmltopdf /usr/bin/

4) Restart Odoo server and try once again.


 

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
0
مارس 25
2263
1
مارس 25
2344
2
يوليو 24
4763
1
مايو 24
3315
2
فبراير 24
3924