Newbie here.. please help

1 view
Skip to first unread message

Chris

unread,
Feb 27, 2007, 9:49:43 AM2/27/07
to Ruby on Rails: RFPDF
Hi,

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

Ed Moss

unread,
Feb 27, 2007, 10:48:17 AM2/27/07
to Ruby on Rails: RFPDF
This usually means that non-pdf codes are present at the beginning of
the document. Some possible causes are:

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.

Reply all
Reply to author
Forward
0 new messages