Wrong number of arguments for setcolor operator from PDF viewer #373

Closed
JLuckey opened this Issue Jul 21, 2012 · 3 comments

Comments

Projects
None yet
4 participants

JLuckey commented Jul 21, 2012

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?

TIA,

Jeff Luckey

Member

yob commented Dec 8, 2012

Hi Jeff,

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?

pietere commented Jan 15, 2013

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.

practicingruby removed the stale label Mar 17, 2014

Owner

practicingruby commented Mar 17, 2014

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment