Rails 4 PDFkit installation fails

459 Views Asked by At

For my site i want to convert an HTML CSS page in a PDF. I use the Gem "pdfkit" and follow the instructions from github and a rails cast. But i can't get it working on rails 4 can someone help me?

I get this error

command failed (exitstatus=1): /usr/local/rvm/gems/ruby-2.1.0/bin/wkhtmltopdf --quiet --page-size Letter --margin-top 0.75in --margin-right 0.75in --margin-bottom 0.75in --margin-left 0.75in --encoding UTF-8 - -

Gem File

gem "pdfkit"
gem "wkhtmltopdf-binary"

config/application.rb

config.middleware.use "PDFKit::Middleware"
0

There are 0 best solutions below