Forum: Ruby on Rails Rails 3 generate pdf

83fa4131b1adc9f895cc966161d86b0f?d=identicon&s=25 Daisy Di (xiaoyu)
on 2012-03-20 03:11
Dear All,

i am developing an application with rails 3, and now i need to generate
a pdf file,i search a lot, and try a lot ,such as prawn ,PDFkit and so
on, it seems that prawn is no response in rails3, and when i use PDFKit,
it asked me to install wkhtmltopdf first, i try to install this,but
failed, anyone can help me ?

Thanks very much.

Daisy
E7bf84a8c8f5143e8d90bc3caba15b14?d=identicon&s=25 Javier Quarite (Guest)
on 2012-03-20 03:50
(Received via mailing list)
Have you tried by searching at

railscast.com?

It have video tutorials, I've seen there prawn


Javier Q.
83fa4131b1adc9f895cc966161d86b0f?d=identicon&s=25 Daisy Di (xiaoyu)
on 2012-03-20 05:18
Javier Quarite wrote in post #1052388:
> Have you tried by searching at
>
> railscast.com?
>
> It have video tutorials, I've seen there prawn
>
>
> Javier Q.

Hi Javier,

I have followed the instruction of the railscast step by step, but there
is no any response when i add .pdf to the end of the url. At the
begining of the video, he asked to install wkhtmltopdf first, i try to
install, but all failed. because the source of the github has been
deleted.

Thanks

Daisy
E7bf84a8c8f5143e8d90bc3caba15b14?d=identicon&s=25 Javier Quarite (Guest)
on 2012-03-20 05:35
(Received via mailing list)
Well... in the Pro version it only uses prawn,

Maybe its because of the date (the free cast is from 2009)

Javier
83fa4131b1adc9f895cc966161d86b0f?d=identicon&s=25 Daisy Di (xiaoyu)
on 2012-03-20 05:49
Javier Quarite wrote in post #1052398:
> Well... in the Pro version it only uses prawn,
>
> Maybe its because of the date (the free cast is from 2009)
>
> Javier


Sorry, i made a mistake. the wkhtmltopdf is for PDFKit. i follow the
video about the prawn and no response, i search the reason, some said
because of the rails version,the video is for rail 2+, not for rails3.
and i try the PDFKit, there is another video to teach how to user
PDFKit, but i should install wkhtmltopdf, but i can find the source.
Thank you.....

Daisy
Df3e68230a461cf316a53bef1d921996?d=identicon&s=25 ranjan kumar (Guest)
on 2012-03-20 06:38
(Received via mailing list)
you can find wkhtmltopdf  here http://code.google.com/p/wkhtmltopdf/
83fa4131b1adc9f895cc966161d86b0f?d=identicon&s=25 Daisy Di (xiaoyu)
on 2012-03-20 10:19
ranjan kumar wrote in post #1052406:
> you can find wkhtmltopdf  here http://code.google.com/p/wkhtmltopdf/

i download wkhtmltopdf-0.9.9-installer.exe and install it, but still
doesnt work.....
1f90c690b534779560d3bfdb23772915?d=identicon&s=25 Bruno Coelho (Guest)
on 2012-03-20 11:58
(Received via mailing list)
Where did you put the file?

Bruno Coelho Santiago
5875341af14c63fc81c4d42095037179?d=identicon&s=25 Tyler Moore (illbzo1)
on 2012-03-20 18:35
I work at Expected Behavior, and we have a SaaS application called
DocRaptor that can create PDF files from HTML.

There's no need to install anything with our service, and it's easy to
include in your own Rails applications.

Here's a link to DocRaptor's home page:

http://docraptor.com/

And a link to our coding examples, for making HTTP POST requests against
our servers:

http://docraptor.com/examples
83fa4131b1adc9f895cc966161d86b0f?d=identicon&s=25 Daisy Di (xiaoyu)
on 2012-03-21 07:20
Bruno Coelho wrote in post #1052445:
> Where did you put the file?
>
> Bruno Coelho Santiago

I put it in the folder ruby192/bin
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.