To install wkhtmltopdf plugin on Almalinux 8
Run the below commands
yum install -y xorg-x11-fonts-75dpi xorg-x11-fonts-Type1 libpng libjpeg op
yum install -y xorg-x11-fonts-75dpi xorg-x11-fonts-Type1 libpng libjpeg openssl icu libX11 libXext libXrender xorg-x11-fonts-Type1 xorg-x11-fonts-75dpi
Last metadata expiration check: 1:05:20 ago on Tuesday 23 April 2024 03:08:54 AM PDT.
Package libpng-2:1.6.34-5.el8.x86_64 is already installed.
Package libjpeg-turbo-1.5.3-12.el8.x86_64 is already installed.
Package openssl-1:1.1.1k-12.el8_9.x86_64 is already installed.
Package libX11-1.6.8-6.el8.x86_64 is already installed.
Package libXext-1.3.4-1.el8.x86_64 is already installed.
Package libXrender-0.9.10-7.el8.x86_64 is already installed.
Dependencies resolved.
Package Architecture Version Repository Size
Installing:
icu x86_64 60.3-2.el8_1 baseos 243 k
xorg-x11-fonts-75dpi noarch 7.5-19.el8 appstream 2.8 M
xorg-x11-fonts-Type1 noarch 7.5-19.el8 appstream 522 k
Installing dependencies:
ttmkfdir x86_64 3.0.9-54.el8 appstream 62 k
Transaction Summary
Install 4 Packages
Total download size: 3.6 M
Installed size: 4.6 M
Downloading Packages:
(1/4): ttmkfdir-3.0.9-54.el8.x86_64.rpm 2.1 MB/s | 62 kB 00:00
(2/4): icu-60.3-2.el8_1.x86_64.rpm 6.8 MB/s | 243 kB 00:00
(3/4): xorg-x11-fonts-Type1-7.5-19.el8.noarch.rpm 25 MB/s | 522 kB 00:00
(4/4): xorg-x11-fonts-75dpi-7.5-19.el8.noarch.rpm 28 MB/s | 2.8 MB 00:00
Total 6.4 MB/s | 3.6 MB 00:00
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : ttmkfdir-3.0.9-54.el8.x86_64 1/4
Installing : xorg-x11-fonts-Type1-7.5-19.el8.noarch 2/4
Running scriptlet: xorg-x11-fonts-Type1-7.5-19.el8.noarch 2/4
Installing : xorg-x11-fonts-75dpi-7.5-19.el8.noarch 3/4
Running scriptlet: xorg-x11-fonts-75dpi-7.5-19.el8.noarch 3/4
Installing : icu-60.3-2.el8_1.x86_64 4/4
Running scriptlet: icu-60.3-2.el8_1.x86_64 4/4
Verifying : icu-60.3-2.el8_1.x86_64 1/4
Verifying : ttmkfdir-3.0.9-54.el8.x86_64 2/4
Verifying : xorg-x11-fonts-75dpi-7.5-19.el8.noarch 3/4
Verifying : xorg-x11-fonts-Type1-7.5-19.el8.noarch 4/4
Installed:
icu-60.3-2.el8_1.x86_64 ttmkfdir-3.0.9-54.el8.x86_64 xorg-x11-fonts-75dpi-7.5-19.el8.noarch xorg-x11-fonts-Type1-7.5-19.el8.noarch
Complete!
Download the RPM wkhtmltox-0.12.6.1-2.almalinux8.x86_64.rpm from github
wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-2/wkhtmltox-0.12.6.1-2.almalinux8.x86_64.rpm
yum install wkhtmltox-0.12.6.1-2.almalinux8.x86_64.rpm
Last metadata expiration check: 1:09:05 ago on Tuesday 23 April 2024 03:08:54 AM PDT.
Dependencies resolved.
Package Architecture Version Repository Size
Installing:
wkhtmltox x86_64 1:0.12.6.1-2.almalinux8 @commandline 15 M
Transaction Summary
Install 1 Package
Total size: 15 M
Installed size: 124 M
Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : wkhtmltox-1:0.12.6.1-2.almalinux8.x86_64 1/1
Running scriptlet: wkhtmltox-1:0.12.6.1-2.almalinux8.x86_64 1/1
Verifying : wkhtmltox-1:0.12.6.1-2.almalinux8.x86_64 1/1
Installed:
wkhtmltox-1:0.12.6.1-2.almalinux8.x86_64
Complete!
To test the plugin is working run below command
wkhtmltopdf onlinesupport4u.in onlinesupport4u.pdf
Loading pages (1/6)
Counting pages (2/6)
Resolving links (4/6)
Loading headers and footers (5/6)
Printing pages (6/6)
Done