[cairo-bugs] [Bug 10209] New: Cairo 1.4.0 generates invalid PDF files

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Mar 7 04:25:01 PST 2007


           Summary: Cairo 1.4.0 generates invalid PDF files
           Product: cairo
           Version: 1.4.0
          Platform: x86 (IA32)
        OS/Version: Linux (All)
            Status: NEW
          Severity: blocker
          Priority: high
         Component: pdf backend
        AssignedTo: krh at bitplanet.net
        ReportedBy: vinterbleg at gmail.com
         QAContact: cairo-bugs at cairographics.org

I just installed cairo-1.4.0 today, and found that my code that outputs PDF
files no longer works.

The generated PDF files make every reader I've tried crash. When you look at
the files, you can see why.

I'm creating a PDF file of size 200x200 points, with a green background and
some lines and arcs.

With the cairo-1.2.6 backend, the BBox header of the PDF file correctly
specifies the size.

<< /Length 3 0 R
   /Filter /FlateDecode
   /Type /XObject
   /Subtype /Form
   /BBox [ 0 0 200 200 ]

With cairo-1.4.0, the header looks as follows:

<< /Length 3 0 R
   /Filter /FlateDecode
   /Type /XObject
   /Subtype /Form
   /BBox [ 0 0 0 820455767354305755076758094100026457645073301504 ]

... which is obviously invalid.

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

More information about the cairo-bugs mailing list