googleodoo

Install the Wkhtmltopdf extension

To install Wkhtmltopdf on your system, follow the steps described below.

  • Execute the following command:

      $ find /opt/bitnami/common/bin -name fc-* | sudo xargs -I {} mv {} {}.bak
    
  • Install the necessary dependencies:

          $ sudo apt-get install zlib1g fontconfig libxrender1 libfreetype6 libxext6 libx11-6
    
  • Download the latest version of the package from the Wkhtmltopdf project releases page and install it. Replace the X.Y.Z and PLATFORM placeholders with the correct version and platform strings from the release filename.

    NOTE: The latest version of Wkhtmltopdf is not compatible with Odoo in some Linux distributions. Please check the recommended version for your Linux distribution in the Odoo GitHub repository.

          $ wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/X.Y.Z/wkhtmltox_X.Y.Z.PLATFORM.deb
          $ sudo apt install -f ./wkhtmltox_X.Y.Z.PLATFORM.deb
    
  • Restart all running servers:

      $ sudo /opt/bitnami/ctlscript.sh restart
    

PDF options will now be available in your application.

Troubleshooting

If you experience issues with display resolution on Linux platforms, they could be related to the xfonts-75dpi or xfonts-100dpi packages. Uninstall them by executing:

$ sudo dpkg --remove --force-depends xfonts-75dpi
$ sudo dpkg --remove --force-depends xfonts-100dpi
Last modification December 23, 2022