[cairo] Bug in 1.8.6 in PostScript Surface - test on win32 and linux

Darren Gallagher dazzag at gmail.com
Fri May 1 05:03:15 PDT 2009

Having added the cairo-ps header the sample code now produces a valid PS
file with the expected content.

So thanks for the suggestion.......  I must say that I find this failure
mode a little odd.   I'd have expected a missing header to mean that it
would not compile, rather than it running but producing an "empty" PS file
with no run time errors at all......  oh well you live and learn.

Thanks again.

2009/4/29 Adrian Johnson <ajohnson at redneon.com>

> Darren Gallagher wrote:
>> Sorry if I was unclear.  I get a PS file but it is just a blank page when
>> opened.
>> Full program listing:
>> #include <cairo.h>
>> #include <cairo-pdf.h>
>> #include <cairo-svg.h>
>> int main (int argc, char *argv[])
>> {
>>    cairo_surface_t *surface;
>>    cairo_t *cr;
>>    surface = cairo_ps_surface_create ("hellocairo.ps" , 504, 648);
> You are missing the #include <cairo-ps.h>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.cairographics.org/archives/cairo/attachments/20090501/9dc0a520/attachment.html 

More information about the cairo mailing list