TIA,
Garrett Lancaster
I use Prawn, and might try WickedPDF at some point. Correct me if I'm
wrong, but isn't PDFKit meant for manipulating existing PDF files, not
producing them from scratch, unlike the other two?
>
> TIA,
> Garrett Lancaster
Best,
--
Marnen Laibow-Koser
http://www.marnen.org
mar...@marnen.org
Sent from my iPhone
--
Posted via http://www.ruby-forum.com/.
As is Wicked.
> which takes HTML
> + CSS and turns it into a fresh PDF.
Good to know. I think I was confusing it with pdftk.
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 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. It can make
really lovely CSS-controlled PDF layouts. It's costly, but very very
effective.
Walter
>
> On Wed, Jan 12, 2011 at 5:54 PM, Garrett Lancaster
> <glan...@garrettlancaster.com> wrote:
>> Thoughts on using WickedPDF vs PDFKit vs. Prawn or others for
>> developing
>> forms with dynamic content?
>>
>> TIA,
>> Garrett Lancaster
>>
>
> --
> 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 rubyonrails-
> ta...@googlegroups.com.
> To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com
> .
> For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
> .
>
Walter Lee Davis wrote:
> It's costly, but very very effective.
Thanks for the recommendation, but don't have a spare 3800 lying around ;)
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.
>
> Walter
--
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 rubyonra...@googlegroups.com.
>> It's costly, but very very effective.
>
>
> Thanks for the recommendation, but don't have a spare 3800 lying
> around ;)
Thankfully, my client qualified for the EDU discount, as they're a non-
profit educational foundation. It is steep, but it saved me from what
could have become another 6 months of heartache trying to get one of
the various open-source systems to work with the less-than-perfect
HTML I had to work from. Compared with my fees for that time period,
even full price would have been a rounding error! I think I got it
working in less than a week.
Walter
I don't remember all the details of the problems I ran into. Prawn has
a different language (not HTML) and has terrible diagnostic messages
and documentation, so you can change a small thing and suddenly have
no output and just have to experiment until you figure out what it's
doing.
I don't remember exactly why I decided to bypass the wkhtmltopdf-based
gems, but I remember that some code that didn't output what I expected
in the gem worked fine when I just called wkhtmltopdf directly.
I completely agree with the pain of installing. I'd say the first
thing to do is write a really simple webpage and pass it to
wkhtmltopdf on your development machine and your server. Use a couple
different fonts and more than one page's worth, and perhaps some
unusual css.
Nice posts! I wish you had written them back when I was experimenting.
I don't remember all the details of the problems I ran into. Prawn has
a different language (not HTML) and has terrible diagnostic messages
and documentation, so you can change a small thing and suddenly have
no output and just have to experiment until you figure out what it's
doing.
I don't remember exactly why I decided to bypass the wkhtmltopdf-based
gems, but I remember that some code that didn't output what I expected
in the gem worked fine when I just called wkhtmltopdf directly.
I completely agree with the pain of installing. I'd say the first
thing to do is write a really simple webpage and pass it to
wkhtmltopdf on your development machine and your server. Use a couple
different fonts and more than one page's worth, and perhaps some
unusual css.
> 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
Prawn markup is easy enough. What the hell is wrong with learning a
DSL? Both with this and with Cucumber, you say "learning a DSL" like
it's a bad thing.
Anyway, if you use prawn_format, you can control Prawn with HTML, though
I don't know how well that works.
>
> Wkhtmltopdf starting to look a lot happier right now!
Best,
David Kahn wrote in post #974766:
> On Thu, Jan 13, 2011 at 2:56 PM, Paul <pa...@nines.org> wrote:Prawn markup is easy enough. What the hell is wrong with learning a
>
>> Nice posts! I wish you had written them back when I was experimenting.
>>
>> I don't remember all the details of the problems I ran into. Prawn has
>> a different language (not HTML) and has terrible diagnostic messages
>> and documentation, so you can change a small thing and suddenly have
>> no output and just have to experiment until you figure out what it's
>> doing.
>>
>
> Timely thread... I was planning to implement Prawn today on an new
> project
> and not use wkhtmltopdf.... but oh god, I have to learn another DSL :(
DSL? Both with this and with Cucumber, you say "learning a DSL" like
it's a bad thing.
Anyway, if you use prawn_format, you can control Prawn with HTML, though
I don't know how well that works.
>
> Wkhtmltopdf starting to look a lot happier right now!
Best,
--
Marnen Laibow-Koser
http://www.marnen.org
mar...@marnen.org
--
Posted via http://www.ruby-forum.com/.
--