[Poppler-bugs] [Bug 9190] New: [PATCH] Cairo transform matrix reset in poppler_page_render

bugzilla-daemon at annarchy.freedesktop.org bugzilla-daemon at annarchy.freedesktop.org
Tue Nov 28 18:21:08 PST 2006


Please do not reply to this email: if you want to comment on the bug, go to    
       
the URL shown below and enter yourcomments there.     
   
https://bugs.freedesktop.org/show_bug.cgi?id=9190          
     
           Summary: [PATCH] Cairo transform matrix reset in
                    poppler_page_render
           Product: poppler
           Version: unspecified
          Platform: All
               URL: http://code.magicprints.com/poppler-render.patch
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: cairo backend
        AssignedTo: poppler-bugs at lists.freedesktop.org
        ReportedBy: danc at merrillpress.com


cairo_scale and other cairo transformation functions have no effect on a
subsequent call to poppler_render_page, since the Cairo backend sets the
transform matrix instead of adding to it. Since poppler_render_page doesn't take
a scaling parameter, it is impossible to use it to render a PDF at anything
other than 72 DPI.

The simple referenced patch(in the URL field) makes CairoOutputDev not reset the
transform matrix, so
cairo_scale(cairo, dpi_x / 72.0, dpi_y / 72.0); poppler_page_render(...) will do
the correct thing.          
     
     
--           
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email         
     
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


More information about the Poppler-bugs mailing list