Hi Guys I need help.. I want to making 1 controller for covert html to pdf.. But that html have amchart (swf). When I tried convert, the swf not loadded... Any body can help me Please???? -- Senior Rails Developer Anton Effendi - Wu You Duan -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
2010/8/22 anton effendi <wuyouduan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> Hi > Guys > > I need help.. I want to making 1 controller for covert html to pdf..Try using prawn gem (http://github.com/sandal/prawn) and prawnto plugin ( http://github.com/thorny-sun/prawnto/). They create PDF files "on the fly". Prawn is able to render images. (But, let me admit that, I have never tried rendering swf files :-) ). There is an easy-to-follow example on GitHub ( http://github.com/ceekays/project-kanjedza/tree/master/inpatient).> But that html have amchart (swf). When I tried convert, the swf not > loadded... >Your statement sounds not complete, sorry I did not understand you cleariy on this. --- Edmond Software Developer | Baobab Health Trust (http://www.baobabhealth.org/) |Malawi Cell: +265 999 465 137 | +265 881 234 717 Skype: ceekays *"Many people doubt open source software and probably don’t realize that there is an alternative… which is just as good.." -- Kevin Scannell* -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@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.
hmm...... I have 1 page.. that page have flash(swf)... and have one button to "export to pdf" When I clicked that button, I want to exporting that page into pdf.... But the flash(swf) can be exported. it blank in pdf.... Could u help me please??? On Mon, Aug 23, 2010 at 4:22 PM, Edmond Kachale < edmond.kachale-qPoFbzSWEfuuL8s4vL5bMA@public.gmane.org> wrote:> > > 2010/8/22 anton effendi <wuyouduan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > > Hi >> Guys >> >> I need help.. I want to making 1 controller for covert html to pdf.. > > Try using prawn gem (http://github.com/sandal/prawn) and prawnto plugin ( > http://github.com/thorny-sun/prawnto/). They create PDF files "on the > fly". Prawn is able to render images. (But, let me admit that, I have > never tried rendering swf files :-) ). > There is an easy-to-follow example on GitHub ( > http://github.com/ceekays/project-kanjedza/tree/master/inpatient). > > >> But that html have amchart (swf). When I tried convert, the swf not >> loadded... >> > Your statement sounds not complete, sorry I did not understand you cleariy > on this. > > --- > Edmond > Software Developer | Baobab Health Trust (http://www.baobabhealth.org/) |Malawi > > Cell: +265 999 465 137 | +265 881 234 717 > Skype: ceekays > > *"Many people doubt open source software and probably don’t realize that > there is an alternative… which is just as good.." -- Kevin Scannell* > > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. >-- Senior Rails Developer Anton Effendi - Wu You Duan -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@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.
> > hmm...... > > I have 1 page.. that page have flash(swf)... and have one button to "export > to pdf" >What technology are you using to "export to PDF"? I hope there should be a way of rendering the swf file (though it will be motionless :-) ).> When I clicked that button, I want to exporting that page into pdf.... But > the flash(swf) can be exported. it blank in pdf.... > > Could u help me please??? >--- Edmond Software Developer | Baobab Health Trust (http://www.baobabhealth.org/) | Malawi Cell: +265 999 465 137 | +265 881 234 717 *"Many people doubt open source software and probably don’t realize that there is an alternative… which is just as good.." -- Kevin Scannell* Le 23 août 2010 11:51:08 UTC+2, anton effendi <wuyouduan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> a écrit :> hmm...... > > I have 1 page.. that page have flash(swf)... and have one button to "export > to pdf" > > When I clicked that button, I want to exporting that page into pdf.... But > the flash(swf) can be exported. it blank in pdf.... > > Could u help me please??? > > > > On Mon, Aug 23, 2010 at 4:22 PM, Edmond Kachale < > edmond.kachale-qPoFbzSWEfuuL8s4vL5bMA@public.gmane.org> wrote: > >> >> >> 2010/8/22 anton effendi <wuyouduan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> >> >> Hi >>> Guys >>> >>> I need help.. I want to making 1 controller for covert html to pdf.. >> >> Try using prawn gem (http://github.com/sandal/prawn) and prawnto plugin ( >> http://github.com/thorny-sun/prawnto/). They create PDF files "on the >> fly". Prawn is able to render images. (But, let me admit that, I have >> never tried rendering swf files :-) ). >> There is an easy-to-follow example on GitHub ( >> http://github.com/ceekays/project-kanjedza/tree/master/inpatient). >> >> >>> But that html have amchart (swf). When I tried convert, the swf not >>> loadded... >>> >> Your statement sounds not complete, sorry I did not understand you cleariy >> on this. >> >> --- >> Edmond >> Software Developer | Baobab Health Trust (http://www.baobabhealth.org/) |Malawi >> >> Cell: +265 999 465 137 | +265 881 234 717 >> Skype: ceekays >> >> *"Many people doubt open source software and probably don’t realize that >> there is an alternative… which is just as good.." -- Kevin Scannell* >> >> -- >> 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To unsubscribe from this group, send email to >> rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> >> . >> For more options, visit this group at >> http://groups.google.com/group/rubyonrails-talk?hl=en. >> > > > > -- > > Senior Rails Developer > Anton Effendi - Wu You Duan > > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@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 23 Aug 2010, at 17:08, Edmond Kachale wrote:> I have 1 page.. that page have flash(swf)... and have one button to > "export to pdf" > > What technology are you using to "export to PDF"? I hope there > should be a way of rendering the swf file (though it will be > motionless :-) ). > > > When I clicked that button, I want to exporting that page into > pdf.... But the flash(swf) can be exported. it blank in pdf....Let''s be frank here: the chances of an SWF file being rendered by any PDF generator are slim to none. PrinceXML doesn''t support it, Prawn doesn''t either, you might be lucky with wkhtmltopdf with the --enable- plugins option, unless you are on linux, then apparently it doesn''t work either. The best way to achieve what you want is just switch from Flash charts to a more open standard, i.e. something that is able to render charts as either a bitmap or an SVG image (although I believe if you want to render SVG in your PDF, Prawn won''t work either). 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Thank all. I''m using wkhtmltopdf and the amchart. Thank you for the logic. But amchart can;t convert into image. May be I must change the chart... do any body have another idea??Or only that way??? Thank you On Mon, Aug 23, 2010 at 10:21 PM, Peter De Berdt <peter.de.berdt-LPO8gxj9N8aZIoH1IeqzKA@public.gmane.org>wrote:> > On 23 Aug 2010, at 17:08, Edmond Kachale wrote: > > I have 1 page.. that page have flash(swf)... and have one button to "export >> to pdf" >> > > What technology are you using to "export to PDF"? I hope there should be > a way of rendering the swf file (though it will be motionless :-) ). > > >> When I clicked that button, I want to exporting that page into pdf.... But >> the flash(swf) can be exported. it blank in pdf.... > > > Let''s be frank here: the chances of an SWF file being rendered by any PDF > generator are slim to none. PrinceXML doesn''t support it, Prawn doesn''t > either, you might be lucky with wkhtmltopdf with the --enable-plugins > option, unless you are on linux, then apparently it doesn''t work either. > > The best way to achieve what you want is just switch from Flash charts to a > more open standard, i.e. something that is able to render charts as either a > bitmap or an SVG image (although I believe if you want to render SVG in your > PDF, Prawn won''t work either). > > > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. >-- Senior Rails Developer Anton Effendi - Wu You Duan -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.