Great! Really like wkhtmltopdf, the only thing which I really hope they
improve soon is pagination as I found that my tr's were getting cut off mid
row if they coincided with the bottom of a page, ended up writing manual
logic to handle pagination.

David

On Tue, Oct 5, 2010 at 3:37 PM, Conor Nugent <[email protected]> wrote:

> Hi David,
>
> Thanks you so much for your reply. My development environment is snow
> leopard and then  I deploy to a ubuntu server. To be honest I'm just
> trialling stuff at moment but strangely ran into problems  getting
> things working on snow leopard.  I actually figured out what was going
> on but I will definitely be looking at your advice when it comes to
> deploying to ubuntu.
>
> Basically I figured out that the problem was due where/how the gem is
> installed under RVM. I checked where the gem was installed which was
>
> /Users/conor/.rvm/gems/ruby-1.9.2-p0/bundler/gems/PDFKit-652209d
>
> I then ran the command recommended in the POST_INSTALL readme in tis
> directory
>
>  export TO=`which pdfkit | sed 's:/pdfkit:/wkhtmltopdf:'` && pdfkit
> --install-wkhtmltopdf
>
> which installed   wkhtmltopdf to
>
> /Users/conor/.rvm/gems/ruby-1.9.2-p0/bin/wkhtmltopdf
>
> I then set the configuration for PDFKit to point to this path in my
> application.rb
>
>  #pdfkit
>    config.middleware.use "PDFKit::Middleware"
>    PDFKit.configure do |config|
>        config.wkhtmltopdf =
> '/Users/conor/.rvm/gems/ruby-1.9.2-p0/bin/wkhtmltopdf'
>    end
>
> Everything seems to be working so far
> --
> Posted via http://www.ruby-forum.com/.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<rubyonrails-talk%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to