Skip to content

Instantly share code, notes, and snippets.

@nghuuphuoc
Last active February 11, 2022 18:45
Show Gist options
  • Star 26 You must be signed in to star a gist
  • Fork 7 You must be signed in to fork a gist
  • Save nghuuphuoc/8282411 to your computer and use it in GitHub Desktop.
Save nghuuphuoc/8282411 to your computer and use it in GitHub Desktop.
Install wkhtmltopdf on Centos 6 x64
$ wget http://wkhtmltopdf.googlecode.com/files/wkhtmltopdf-0.9.9-static-amd64.tar.bz2
$ tar xvjf wkhtmltopdf-0.9.9-static-amd64.tar.bz2
$ mv wkhtmltopdf-amd64 /usr/bin/wkhtmltopdf
// In case you got the issue
// wkhtmltopdf: error while loading shared libraries:
// libfontconfig.so.1: cannot open shared object file: No such file or directory
//
// run the command below:
$ yum install urw-fonts libXext libXrender fontconfig libfontconfig.so.1
@jazibsheikh
Copy link

Guys!! See #3518 -- releases are now hosted on Github.

@jazibsheikh
Copy link

jazibsheikh commented Jun 17, 2017

Link to Generic Linux version to dowload wkhtmltopdf

Another one for CentOS 6 Download

@justingreerbbi
Copy link

justingreerbbi commented Jun 21, 2017

Note that the RPM CentOS 6 download is not headless and will need a display to run. Simple enough but a heads up.

@swapnil-jaiswal
Copy link

Thanks for the dependency list 👍
Same of hard to find.

yum install urw-fonts libXext libXrender fontconfig libfontconfig.so.1

@shakaran
Copy link

shakaran commented Feb 6, 2019

I had to add xorg-x11-fonts-75dpi xorg-x11-fonts-Type1 to dependencies

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