hey all

I'm trying to use the plugin acts_as_flying_saucer, which converts html
(well, xhtml, strictly speaking) to pdf.
http://github.com/dagi3d/acts_as_flying_saucer/tree/master

It works if i choose the method which saves a file to my local hd, but
it doesn't work if i choose the method which sends a file to the
browser: the file that comes through has a size of 1 byte and can't be
opened.

I'm following the examples on the above page and as far as i know have
checked all the right boxes.  Here's my code -

This works:

        render_pdf :template => 'school_subscribers/show_pdf',
                   :pdf_file => '/home/max/Desktop/saved.pdf'

And this doesn't work (sends an empty file):

        render_pdf :template => 'school_subscribers/show_pdf',
                   :send_file => { :filename => "pushed.pdf" }

Does anyone have any experience with, or insight into, this by any
chance?

thanks
max
-- 
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to