INSTALACION Y REINSTALCAION DE WKHTMLPDF PARA ODOO 10 COMPROBADO


INSTALACION Y REINSTALCAION DE WKHTMLPDF PARA ODOO 10 COMPROBADO


Instalación de Odoo 8, 10 on Raspberry with ARMHF architectur.

Message when i Print to pdf from Odoo:
Report (PDF)
Wkhtmltopdf failed (error code: -6). Message: The switch --header-spacing, is not support using unpatched qt, and will be ignored.The switch --header-html, is not support using unpatched qt, and will be ignored.The switch --footer-html, is not support using unpatched qt, and will be ignored.QXcbConnection: Could not connect to display.
Como Arreglar esto:

1. Remover wkhtmltopdf and related package

$ sudo apt-get remove libqt4-dev qt4-dev-tools wkhtmltopdf
$ sudo apt-get autoremove

Adicional eliminación wkhtmlpdf


Desinstalar wkhtmltopdf

Para desinstalar unicamente wkhtmltopdf en Ubuntu 14.10 (Utopic Unicorn) ejecutar los siguientes comandos:
sudo apt-get remove wkhtmltopdf

Desinstalar wkhtmltopdf e los paquetes dependientes

Para desinstalar el paquete wkhtmltopdf y todos los paquetes dependientes que ya no sean necesarios en Ubuntu Utopic.
sudo apt-get remove --auto-remove wkhtmltopdf

Purga wkhtmltopdf

Usted también puede eliminar la información de configuración del wkhtmltopdf en Ubuntu Utopic ejecutar lo siguiente comando:
sudo apt-get purge wkhtmltopdf
Para eliminar la información de configuración del wkhtmltopdf y todos los paquetes dependientes en Ubuntu Utopic ejecutar:
sudo apt-get purge --auto-remove wkhtmltopdf

2. Instalar requirement package for compiling

$ sudo apt-get install openssl build-essential libssl-dev libxrender-dev git-core libx11-dev libxext-dev libfontconfig1-dev libfreetype6-dev fontconfig -y

3. Clonar from git wkhtmltopdf and qt source

$ git clone git://github.com/wkhtmltopdf/wkhtmltopdf.git wkhtmltopdf
$ mkdir qt-wkhtmltopdf && cd qt-wkhtmltopdf
$ git clone https://www.github.com/wkhtmltopdf/qt --depth 1 --branch wk_4.8.7 --single-branch .

4. Compilar qt

$ sudo ./configure -nomake tools,examples,demos,docs,translations -opensource -prefix "`pwd`" `cat ../wkhtmltopdf/static_qt_conf_base ../wkhtmltopdf/static_qt_conf_linux | sed -re '/^#/ d' | tr '\n' ' '`
$ sudo make -j3
$ sudo make install

5. Compilar wkhtmltopdf

$ cd ../wkhtmltopdf
$ sudo ../qt-wkhtmltopdf/bin/qmake
$ sudo make -j3
$ sudo make install

6. Reboot

$ sudo reboot

Comentarios

Entradas populares