

Im still unsure why I had to run that command though, even when I have it set to install from my Gemfile. So I saw another post that said to do gem install wkhtmltopdf-binary which is what finally solved the issue. I followed these commands sudo add-apt-repository ppa:ecometrica/serversīut that did not solve the issue.
#Pdfkit rails pdf#
I tried to generate another pdf to see the error again and got a clear error of: PDFKit::NoExecutableError (No wkhtmltopdf executable found at /usr/local/bin/wkhtmltopdf Im still not sure what that error was in the last picture I posted. Inside my config/initializers/assets.rb I had ActionController::Base.asset_host = Proc.new /" I use rvm I added PDFkit to my gemfile and the. It is a rails 3 app, 1.9.2 running on snow leopard.

I was wondering if anyone else has experienced similar problems or has any clues as to what is going wrong. Inside application.rb i have: require 'pdfkit' I was following along with Ryan Bates' really great railscast on PDFkit when I ran into a few problems installing wkhtmltopdf ( I also posted about my problem in the episode comments). Also, for some stupid reason I had to put quotes around a font that normally does not need this at all in css for wkhtmltopdf to 'see it', like this: font-family: 'serif' None of this is obvious and it's difficult to debug. The issue Im having is I believe pdfkit is not getting precompiled with my assets. For me, I'm running Rails/PDFkit in a Docker container running Ubuntu, and needed to install fonts locally to Ubuntu. I could not find the instructions I followed for getting pdf kit up and working, when I was running the application on my localhost. Part of my app involves generating pdf's from html web pages. So far everything is up and running smoothly except for one issue. Im working on deploying my rails application on an Ubuntu server with Apache2 and Passenger.
