Giter Site home page Giter Site logo

Comments (4)

sbidoul avatar sbidoul commented on July 19, 2024

@wbeverly can you test agin using the latest version of wkhtmltopdf from http://wkhtmltopdf.org/?

from account-financial-reporting.

pyscape avatar pyscape commented on July 19, 2024

It's likely that you'll have to manually compile the latest version of wkhtmltopdf and qt:

  1. Remove wkhtmltopdf and related package
$ sudo apt-get remove libqt4-dev qt4-dev-tools wkhtmltopdf

$ sudo apt-get autoremove
  1. Install 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
  1. Clone 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 .
  1. Compile 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

  1. Compile wkhtmltopdf
$ cd ../wkhtmltopdf

$ sudo ../qt-wkhtmltopdf/bin/qmake

$ sudo make -j3

$ sudo make install
  1. Reboot
$ sudo reboot

from account-financial-reporting.

pedrobaeza avatar pedrobaeza commented on July 19, 2024

This is very old and should be already handled. Closing.

from account-financial-reporting.

mindey avatar mindey commented on July 19, 2024

Hm, what worked here, is this solution: https://medium.com/@aadimator/odoo-wkhtmltopdf-installation-df0f47104c60

Since Medium's got a habit of paywalling, namely:

sudo apt-get remove wkhtmltopdf
sudo apt-get autoremove 

wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz

tar -xf wkhtmltox-0.12.4_linux-generic-amd64.tar.xz

sudo cp wkhtmltox/bin/wkhtmltoimage /usr/bin/
sudo cp wkhtmltox/bin/wkhtmltopdf /usr/bin/

from account-financial-reporting.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.