Hi Is there any way to insert images into pdf through ror. I have tried pdf:writer and used pd.image.Still I am not getting the result. It is said that images are not supported by the pdfwriter.rb file I am using. Earlier I was not able to insert tables but including Simpletable.rb file solved my problem. So my doubt is there any extra file needed for inserting images?. Any help will be greatly appreciated -- 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 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 -~----------~----~----~----~------~----~------~--~---
Hi Is there any way to insert images into pdf through ror. I have tried pdf:writer and used pdf.image.Still I am not getting the result. It is said that images are not supported by the pdfwriter.rb file I am using. Earlier I was not able to insert tables but including Simpletable.rb file solved my problem. So my doubt is there any extra file needed for inserting images?. Any help will be greatly appreciated -- 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 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 -~----------~----~----~----~------~----~------~--~---
How about: pdf = PDF::Writer.new(:paper => "A4", :orientation => :landscape) y = pdf.absolute_top_margin - 15 x = pdf.absolute_left_margin - 22 pdf.add_image_from_file("public/images/rails.png", x, y) -- 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 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 -~----------~----~----~----~------~----~------~--~---
Dom Padden wrote:> How about: > > pdf = PDF::Writer.new(:paper => "A4", :orientation => :landscape) > > y = pdf.absolute_top_margin - 15 > x = pdf.absolute_left_margin - 22 > pdf.add_image_from_file("public/images/rails.png", x, y)Thanks Dom But I used this command and its not working. One conclusion I have reached is that the pdfwriter.rb file I downloaded from http://www.hollo.org/pdfwriter/ does not support images. Its mentioned in that site as its limitations.Can you tell me what should I do and if there is any download available which supports images too, please tell me Thanks for your suggestion Sreekar -- 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 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 -~----------~----~----~----~------~----~------~--~---
Install the gem ruport It''ll also install pdf writer, U can try doing that.. U can install ruport like typing this in yr command prompt gem install ruport --include-dependencies -- 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 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 -~----------~----~----~----~------~----~------~--~---
Ratnavel Sundaramurthi wrote:> Install the gem ruport > > It''ll also install pdf writer, U can try doing that.. > > U can install ruport like typing this in yr command prompt > > gem install ruport --include-dependenciesThank You sir, I installed ruport as you told. Also I have pdfwriter gem installed. But still I cant get the images inserted into pdf. As I already mentioned the pdfwriter.rb file I am using(inside models) doent support images it supports aonly simple pdf. So is there any other class file that I can use to get the images inserted into pdf? Thanks once again Sreekar -- 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 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 -~----------~----~----~----~------~----~------~--~---
Sreekar, PDF Writer with all it''s documentation can be found at http://ruby-pdf.rubyforge.org/pdf-writer/ This is an example to load three images : http://ruby-pdf.rubyforge.org/pdf-writer/demos/chunkybacon.rb Pity this guy didn''t pick a different name for his http://www.hollo.org/pdfwriter/ HTH Mike> -----Original Message----- > From: rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > [mailto:rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org] On Behalf Of Sreekar Sree > Sent: 17 January 2008 05:44 > To: rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org > Subject: [Rails] Inserting(adding) images into pdf > > > Hi > > Is there any way to insert images into pdf through ror. > I have tried pdf:writer and used pdf.image.Still I am not > getting the result. > It > is said that images are not supported by the pdfwriter.rb > file I am using. > > Earlier I was not able to insert tables but including > Simpletable.rb file solved my problem. > > So my doubt is there any extra file needed for inserting images?. > > Any help will be greatly appreciated > -- > 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 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 -~----------~----~----~----~------~----~------~--~---
Mike Gilbert wrote:> Sreekar, > > PDF Writer with all it''s documentation can be found at > http://ruby-pdf.rubyforge.org/pdf-writer/ > This is an example to load three images : > http://ruby-pdf.rubyforge.org/pdf-writer/demos/chunkybacon.rb > > Pity this guy didn''t pick a different name for his > http://www.hollo.org/pdfwriter/ > > HTH > > MikeThanks Mike I will try as you told. Thanks for those links -- 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 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 -~----------~----~----~----~------~----~------~--~---
Hello Sreekar, Did u tried with the URL and got any solution. Becoz i am also facing the same problem. Pls reply if u found the solution Thanks Santhosh Kumar Sreekar Sree wrote in post #618856:> Mike Gilbert wrote: >> Sreekar, >> >> PDF Writer with all it''s documentation can be found at >> http://ruby-pdf.rubyforge.org/pdf-writer/ >> This is an example to load three images : >> http://ruby-pdf.rubyforge.org/pdf-writer/demos/chunkybacon.rb >> >> Pity this guy didn''t pick a different name for his >> http://www.hollo.org/pdfwriter/ >> >> HTH >> >> Mike > > Thanks Mike > > I will try as you told. Thanks for those links-- 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 unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/6897fba2ecff33cc4dd7769aac96b341%40ruby-forum.com. For more options, visit https://groups.google.com/groups/opt_out.