I'm using Prawn 0.12, rails 3.2.2 to generate a multi-page pdf document and it has been working flawlessly.
Yesterday I added a table to page 10 of the document and it caused my PDF viewer to display the error:
"Wrong number of arguments for a setcolor operator"
When viewing the generated document with Adobe Reader 7.0.9, the first 4 or 5 pages are blank. When viewed with Adobe Viewer 10.1.2, no pages are blank, but still get an error message "an error exists on this page.."
Here's the code I added to generate the table:
table( [ %w[Jeff Ben Alex], %w[Bob Bill Alice] ])
and it generates a 2-row table of names as expected.
If I remove that table code, the document works fine. I have googled a little but found very little on this subject.
What should I try next?
Sorry for taking so long to look at this. Were you able to solve it? If not, can you provide a short script that reproduces the issue?
Just FYI, we have the same issue in older Acrobat Reader versions on Mac and on Photoshop on Mac. Opens without problems in Preview on Mac.
Without a runnable example that reproduces this problem can't look into it further, but it sounds like possible corruption due to using either templates or groups, both of which have been removed in Prawn 1.0.