On Thu, Jan 13, 2011 at 10:47 AM, Marnen Laibow-Koser
<[email protected]>wrote:

> Walter Davis wrote in post #974668:
> > On Jan 13, 2011, at 9:48 AM, Paul wrote:
> >
> >> I've played around with all three and have found them all to work if
> >> you don't care about exact placement of items. They tend to limit your
> >> formatting choices. The largest pain I had was getting wkhtmltopdf
> >> installed and acting the same way on my server as it did on my
> >> development machine. (The problems, after struggling with
> >> dependencies, had to do with scaling and fonts.)
> >>
> >> For my app, I found it easier to not use any of the gems, but just
> >> call `wkhtmltopdf ...` directly, but it depends on what you are trying
> >> to do.
> >
> > I've used PrinceXML in another (PHP) project. If you can find a
> > wrapper in Rails to use that, I recommend it heartily.
>
> That would be the Princely plugin.  Or just shell out to it.
>
> > It can make
> > really lovely CSS-controlled PDF layouts. It's costly, but very very
> > effective.
>
> My understanding is that wk is nearly as good without the $3000 price
> tag, but I've never used either.
>

My experience has been that I ate up what would have been a lot of the $3k
price by using wkhtmltopdf. Definitely issues with installation (going from
mac to ubuntu), issues with rendering on ubuntu (requiring need to install a
static binary which patches QT), inconsistencies as to whether it renders
links or not (I found that using the gems that my wkhtmltopdf was not
rendering links, so I dropped using the gems and went to use wkhtmltopdf
directly)... anyhow, I did write a couple blog posts on the subject which
maybe would be helpful:

http://blog.structuralartistry.com/post/2316402105/using-wkhtmltopdf-with-ruby-and-rails
http://blog.structuralartistry.com/post/2327213260/installing-wkhtmltopdf-on-ubuntu-server



>
> >
> > Walter
>
> Best,
> --
> Marnen Laibow-Koser
> http://www.marnen.org
> [email protected]
>
> --
> 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