centos 69 – install wkhtmltopdf

# get source with wget
wget https://bitbucket.org/wkhtmltopdf/wkhtmltopdf/downloads/wkhtmltox-0.13.0-alpha-7b36694_linux-centos6-amd64.rpm
# install with yum to get dependecy
yum install wkhtmltox-0.13.0-alpha-7b36694_linux-centos6-amd64.rpm -y

# if error need xvfb
yum search xvfb
yum install xorg-x11-server-Xvfb
echo "export QT_XKB_CONFIG_ROOT=/usr/share/X11/xkb" >> /etc/profile
source /etc/profile
xvfb-run wkhtmltopdf https://g3n1k.wordpress.com g3n1k.pdf

# if the fonts become reactangle
# copy all your font to /usr/share/fonts
ls /usr/share/fonts/
fc-cache
yum install -y ghostscript
Advertisements

Published by

G3n1k

just to remember what i had known :)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s