Skip to content

Instantly share code, notes, and snippets.

@calebbrewer
Last active August 5, 2024 02:36
Show Gist options
  • Save calebbrewer/aca424fb14618df8aadd to your computer and use it in GitHub Desktop.
Save calebbrewer/aca424fb14618df8aadd to your computer and use it in GitHub Desktop.
How to Setup wkhtmltopdf on CentOS 7
@ajitsingh25
Copy link

The below commands fixed the issue for me

Make sure to remove below two packages first for the clean installations
yum remove -y wkhtmltopdf
yum remove -y wkhtmltox

And then execute below two commands
wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox-0.12.6-1.centos7.x86_64.rpm
yum localinstall wkhtmltox-0.12.6-1.centos7.x86_64.rpm

Verify
wkhtmltopdf --version

@JuanCarlosAguilarB
Copy link

thanks!

@cdphantom
Copy link

I am also facing this error "wkhtmltopdf: error while loading shared libraries: libpng15.so.15: cannot open shared object file: No such file or directory"

yum install libpng15.x86_64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment