ruby on rails - How to fix "error exists on this page" PDF error from prawn generated documents? -


I am generating PDFs in my Rail application using shrimp PDF library. Everything is working very well, but when Acrobat or Acrobat Reader is opening PDF as a result, the message is shown below:

There is an error on this page. Acrobat can not display the page correctly. Please contact the person who has created a PDF document to fix the problem.

Adobe lists its Acrobat 8.1.3 release notes as being fixed.

1810668 When printing large documents with memory leak images: â? ¨ & gt; When a large document is exported to PostScript or printers are sent to print "There is an error on this page. Acrobat can not display the page correctly, please contact the person who has the problem PDF document to be corrected "could be. This problem was encountered on some documents with large number of monochrome images, but it has been improved in 8.1.3. Route: Problems fixed in 8.1.2.

But I see the problem in all current versions of Acrobat Professional and Acrobat Reader. My PDF uses a background image on every page, there are many pages in it (usually 75 +), And there are many transparent images, but nothing is causing the error, except that the Mac preview does not show any problem, and if you press "OK" on Acrobat error If so, then all is well.

I ran a preflight tool in Acrobat Professional to check PDF syntax errors and did not get any warning but some alerts were "unbalanced Q & Q operators".

This is facing the application for the customer so I can not change the settings to suppress the error in the PDF reader.

How can I get the error to forget?

There was a bug in this shrimp, it should be fixed in 0.11.1 release.

Comments