To install wkhtmltopdf and wkhtmltoimage on centOS 9|8; simply download wkhtmlpdf using wget and then run sudo dnf localinstall wkhtmltox-0.12.6-1.centos8.x86_64.rpm
command on the terminal or command line to install it.
According to https://wkhtmltopdf.org/ :- wkhtmltopdf
and wkhtmltoimage
are open source (LGPLv3) command line tools to render HTML into PDF and various image formats using the Qt WebKit rendering engine. These run entirely “headless” and do not require a display or display service.
How to Install wkhtmltopdf & wkhtmltoimage on CentOS 9|8
Steps to install wkhtmltopdf rpm & wkhtmltoimage on CentOS 9|8:
Step 1 – Install wget
Start terminal or command line and run sudo yum -y install wget command into it to install wget:
sudo yum -y install wget
Step 2 – Download wkhtmltopdf on CentOS 8
To download for installation wkhtmltopdf and wkhtmltoimage on centOS 9|8; just type wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox-0.12.6-1.centos8.x86_64.rpm on terminal window and press enter:
wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox-0.12.6-1.centos8.x86_64.rpm
Step 3 – Install wkhtmltopdf using rpm
To install wkhtmltopdf and wkhtmltoimage using rpm; simply type the sudo dnf localinstall wkhtmltox-0.12.6-1.centos8.x86_64.rpm
on terminal window and press enter:
sudo dnf localinstall wkhtmltox-0.12.6-1.centos8.x86_64.rpm
Once the dependencies are installed, you have completed the installation of wkhtmltopdf into our centOS.
Conclusion
Through this tutorial, we have learned how to install wkhtmltopdf and wkhtmltoimage on centOS 9|8 system.