![]() ![]() The author, Jakob Truelsen (( ]( ))) was very helpful and responsive when I emailed him directly about a problem to which I could not find an answer.īack to the main event now, there was the decision to use a DSL such as Prawn or to find an html to pdf converter. ( Google Code Archive - Long-term storage for Google Code Project Hosting.]( Google Code Archive - Long-term storage for Google Code Project Hosting.)) To digress for a moment, this is the site for wkthmltopdf: I went through some trial and error and research in several areas before I came up with what ended up working for us, which is wkhtmltopdf (Web Kit Html to Pdf). I recently had the requirement of serving a certain report from a Rails based system in pdf format. Title: Using wkhtmltopdf with Ruby and Railsĭescription: Pdf generation with wkhtmltopdf on Rails PS, I am copying the text of my blog below… may not be pretty but in there is some info on installing the static binary: If anyone has any pointers they would be greatly appreciated It kind of feels like I have drifted down the wrong path completely with I'm still getting a permissionĭenied exception but as far as I can tell the file is rwx for all This didn't go smoothly and I had to add the directory and change some Install wkhtmltopdf by hand or try running `pdfkit -install-wkhtmltopdf` No wkhtmltopdf executable found at /usr/local/bin/wkhtmltopdf ![]() Of the pages in my app and I got the following action controller I then tried to see if a could get a pdf version of one I added PDFkit to my gemfile and the appropriate config options to myĪpplication.rb. ![]() It is a rails 3 app, 1.9.2 running on snow leopard. I was wondering if anyoneĮlse has experienced similar problems or has any clues as to what is When I ran into a few problems installing wkhtmltopdf ( I also postedĪbout my problem in the episode comments). I was following along with Ryan Bates' really great railscast on PDFkit ![]()
0 Comments
Leave a Reply. |