Hello friends, I have a task in which i need to generate a pdf file from the html.erb file. and seriously i don''t have any clue. So pleas help me out.. Thanks abhishek --~--~---------~--~----~------------~-------~--~----~ 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-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 25 Aug 2008, at 13:42, Abhishek shukla wrote:> I have a task in which i need to generate a pdf file from the > html.erb file. and seriously i don''t have any clue. So pleas help me > out..Be prepared to shell out quite a bit of money for the exorbant license fee, but: http://sublog.subimage.com/articles/2007/05/29/html-css-to-pdf-using-ruby-on-rails Best regards Peter De Berdt --~--~---------~--~----~------------~-------~--~----~ 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-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Looks like maybe a job for PHP which has a nice class library for doing PDF... Maybe somebody could port it to Rails? ~DC On Aug 25, 4:42 am, "Abhishek shukla" <bettera...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hello friends, > I have a task in which i need to generate a pdf file from the html.erb file. > and seriously i don''t have any clue. So pleas help me out.. > > Thanks > abhishek--~--~---------~--~----~------------~-------~--~----~ 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-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Aug 25, 1:42 pm, "Abhishek shukla" <bettera...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hello friends, > I have a task in which i need to generate a pdf file from the html.erb file. > and seriously i don''t have any clue. So pleas help me out.. > > Thanks > abhishekHave a look at <http://code.google.com/p/cnruby/wiki/RailsPluginActiveFPDF>. I have no experience using it, but it looks up to date and the templates are ok (as far as pdf generation goes..), e.g. <http:// cnruby.googlecode.com/svn/trunk/rails-plugins/active_fpdf/app/views/ pages/pdfs/show-06.rfpdf>. Another option is to generate LaTeX documents using erb and post- process these using pdflatex. Should be doable in less than 50 lines of ruby, but IMO not practical unless you''re comfortable with LaTeX. Isak --~--~---------~--~----~------------~-------~--~----~ 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-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---