[cairo-bugs] [Bug 17283] New: Cairo produces broken PDF for gradients

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Aug 24 23:12:39 PDT 2008


           Summary: Cairo produces broken PDF for gradients
           Product: cairo
           Version: 1.6.0
          Platform: x86 (IA32)
        OS/Version: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: pdf backend
        AssignedTo: ajohnson at redneon.com
        ReportedBy: cmertes at techfak.uni-bielefeld.de
         QAContact: cairo-bugs at cairographics.org

Created an attachment (id=18489)
 --> (http://bugs.freedesktop.org/attachment.cgi?id=18489)
example of broken pdf

When using Cairo to generate PDF files containing a colour gradient, the
resulting file is broken. Including it with pdflatex produces strange results
like a shrunken font size for the rest of the page and a wrong placement of the

pdf2ps prints the following error which might be a helpful hint for someone who
doesn't know as little about pdf as I do:

   **** Warning: File has imbalanced q/Q operators (too many q's)

   **** This file had errors that were repaired or ignored.
   **** The file was produced by: 
   **** >>>> cairo 1.6.0 (http://cairographics.org) <<<<
   **** Please notify the author of the software that produced this
   **** file that it does not conform to Adobe's published PDF
   **** specification.

I attached a simple example file generated by gnumeric. The only other software
I tried was inkscape which produces the same error. If there are possibilities
to use colour gradients without running into this error then I didn't find

Unfortunately I cannot easily try out Cairo 1.7 but I guess you know whether
you already fixed this bug or not.

Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the cairo-bugs mailing list