Skip to content

Instantly share code, notes, and snippets.

@danilodorgam
Last active June 6, 2018 17:52
Show Gist options
  • Save danilodorgam/4408258aa973765ed7ea459a50a5fec3 to your computer and use it in GitHub Desktop.
Save danilodorgam/4408258aa973765ed7ea459a50a5fec3 to your computer and use it in GitHub Desktop.
Instalando o wkhtmltopdf com xvfb no CentOS/Red Hat 7

Instalando o wkhtmltopdf com xvfb no CentOS 7

Instalando o wkhtmltopdf

verifique sempre a última versão estável no site https://wkhtmltopdf.org/downloads.html

wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
tar xf wkhtmltox-0.12.4_linux-generic-amd64.tar.xz
sudo mv wkhtmltox /etc/
sudo ln -s /etc/wkhtmltox/bin/wkhtmltopdf /usr/bin/

dentro do pacote wkhtmltox também existe o wkhtmltoimage o procedimento para ativar é o mesmo que fizemos na última linha do bloco acima.

Instalando o xvfb

yum install xorg-x11-server-Xvfb
yum install xorg-x11-fonts-Type1 xorg-x11-fonts-75dpi

Contribuições são bem vindas ;)

Refs

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