I was looking for a PDF plugin for rails and saw RFPDF. I was able to
successfully install in and was in the process of trying out the
sample code from your site. (I tried to do it via the template--
mypdf.rfpdf)
The code successfully executed and a mypdf.pdf was created,
unfortunately, Acrobat cannot read the document. I get this error
when I open the document:
"... cannot open mypdf.pdf because it is either not a supported file
type or because the file has been damaged (for example, it was sent as
an email attachment and wasn't correctly decoded)."
Please help. What could I have done wrong? Thanks
Chris
1) Including the action in a layout. It is best to use no layout with
the rfpdf view.
2) There is non-pdf code before the <% tag in your rfpdf template.
Thanks.