[cairo] Bug in cairo_pdf_surface_set_size?

Adrian Johnson ajohnson at redneon.com
Tue Aug 7 15:21:46 PDT 2007


Elmar Braun wrote:
> Hi,
> 
> I have a encountered a problem with PDF surfaces when using
> cairo_pdf_surface_set_size. I'm using Cairo 1.4.10. As demanded by the
> documentation, I'm calling cairo_pdf_surface_set_size before any drawing
> operations have taken place.
> 
> After resizing, some (but not all) drawing operations are shifted along
> the Y-axis (but not the X-axis). The length of the shift seems to equal
> the growth of the page height by cairo_pdf_surface_set_size.

The attached patch should fix the problem.


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0001-PDF-Fix-regression-in-pdf_surface_set_size.txt
Url: http://lists.cairographics.org/archives/cairo/attachments/20070808/51957380/attachment-0001.txt 


More information about the cairo mailing list