This was tested on:
- Ubuntu 14.04 x64
- Ubuntu 16.04 x64
sudo apt-get update
sudo apt-get install xvfb libfontconfig wkhtmltopdf
Now it's time to test that everything is working as expected
wkhtmltopdf http://www.google.com google.pdf
If you see Done
, then everything is installed correctly and you're ready to generate some PDF's :D
In production server (ubuntu 14.04) getting this error
$ wkhtmltopdf http://www.google.com google.pdf
/usr/local/rvm/gems/ruby-2.5.1/gems/wkhtmltopdf-binary-0.12.4/bin/wkhtmltopdf_linux_x86: 1: /usr/local/rvm/gems/ruby-2.5.1/gems/wkhtmltopdf-binary-0.12.4/bin/wkhtmltopdf_linux_x86: Syntax error: word unexpected (expecting ")")
Any help @brunogaspar @yusufyilmaz @brunogaspar