zoukankan      html  css  js  c++  java
  • wkhtmltopdf错误解决办法

    Odoo/openerp 打印报表时,无法输出PDF格式,提示下面的错误
    Unable to find Wkhtmltopdf on this system. The report will be shown in html
    wkhtmltopdf.org
    原因是没有安装wkhtmltopdf或者路径设置不正确.
    按照下面的方法可以解决此问题.

    到官方网站下载相关程序,根据服务器选择相应的安装包,win-32bit&64bit,ubuntu.....注意版本一定要0.12.1或更高版本.http://wkhtmltopdf.org/downloads.html  下载完后安装. 

    1 . for Windows  ,需要进行以下设置:

    2 for Ubuntu 14.04

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

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

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

         Restart Odoo server and try once again.

    the solve of install error: 

    1. deb http://security.ubuntu.com/ubuntu trusty-security main

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

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

     sudo cp wkhtmltox/bin/wkhtmlto* /usr/bin/

  • 相关阅读:
    multition pattern
    singleton pattern
    strategy pattern
    设置Activity的属性
    iphone自动旋转与调整大小
    游戏编程从哪里开始呢
    TTF字体文件使用
    TextMate介绍
    ios程序崩溃处理
    ios笔试题
  • 原文地址:https://www.cnblogs.com/chjbbs/p/6635362.html
Copyright © 2011-2022 走看看