hey all
I’m trying to use the plugin acts_as_flying_saucer, which converts html
(well, xhtml, strictly speaking) to pdf.
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