[cairo-bugs] [Bug 50598] New: images with EXTEND_PAD may get rendered at the wrong position

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Jun 1 06:03:48 PDT 2012


             Bug #: 50598
           Summary: images with EXTEND_PAD may get rendered at the wrong
    Classification: Unclassified
           Product: cairo
           Version: 1.12.2
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: pdf backend
        AssignedTo: ajohnson at redneon.com
        ReportedBy: benjamin at sipsolutions.net
         QAContact: cairo-bugs at cairographics.org

Created attachment 62394
  --> https://bugs.freedesktop.org/attachment.cgi?id=62394
Patch that fixes the issue, no idea how correct it is ...

When an image rendered using EXTEND_PAD and clipped at the same time it may be
rendered at the wrong position.
The specific usecase that happened for me was rendering part of a PDF (scanned
document) into a new PDF surface using popplers render() function (not
render_for_printing because of bug #44002.

I'll attach a patch that fixes the issue for me. It seems that the offset is
set on the created image surface in
_cairo_pdf_surface_add_padded_image_surface, however it is then not used inside

Configure bugmail: https://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