xhtml2pdf3 command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
xhtml2pdf3: command not found
or when using sudo you get the following error message
sudo: xhtml2pdf3: command not found
Solutions to xhtml2pdf3: command not found
How To Fix xhtml2pdf3: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu xhtml2pdf3 is provided by python3-xhtml2pdf package.
python3-xhtml2pdf is:
xhtml2pdf is a html2pdf converter using the ReportLab Toolkit, the HTML5lib and pyPdf. It supports HTML 5 and CSS 2.1 (and some of CSS 3). It is completely written in pure Python so it is platform independent.
The main benefit of this tool that a user with Web skills like HTML and CSS is able to generate PDF templates very quickly without learning new technologies.
xhtml2pdf was previously developed as “pisa”.
This package installs the library for Python 3.
To fix this problem, we can install more using the command below.
sudo apt-get -y install python3-xhtml2pdf
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install python3-xhtml2pdf.
sudo apt -y install python3-xhtml2pdf
Or if you have aptitude installed you can use the following command.
sudo aptitude install python3-xhtml2pdf
Summary
In this tutorial we learn how to fix xhtml2pdf3 command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.