Rudy Seidinger

Damaged Pdf File When Exporting Using Rails

Recommended Posts

Hi.

 

We're experiencing a problem while exporting to PDF using Ruby on Rails.

The PDF file is generated on server (and sent to the client's browser throught its request), but whenever i try to open it on any PDF reader program, program says the file is damaged.

 

Exports to both PNG and JPEG formats are working perfectly.

 

Here is the setup we are using on our app:

  • Rails 3.2.0
  • Ruby 1.9.3
  • RMagick 2.13.1
  • zlib properly instaled through RVM

We are using the latest PDFGenerator class version (from the .ZIP file available on Fusion Chart's website).

 

Please, find attached the PDF file generated.

 

Could you help us?

 

Thanks!

Chart.pdf

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now