Having added the cairo-ps header the sample code now produces a valid PS file with the expected content.<br><br>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.<br>
<br>Thanks again.<br><br><br><div class="gmail_quote">2009/4/29 Adrian Johnson <span dir="ltr"><<a href="mailto:ajohnson@redneon.com">ajohnson@redneon.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">Darren Gallagher wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Sorry if I was unclear. I get a PS file but it is just a blank page when opened.<br>
<br>
Full program listing:<br>
<br>
#include <cairo.h><br>
#include <cairo-pdf.h><br>
#include <cairo-svg.h><br>
<br>
int main (int argc, char *argv[])<br>
{<br>
cairo_surface_t *surface;<br>
cairo_t *cr;<br>
<br>
surface = cairo_ps_surface_create ("<a href="http://hellocairo.ps" target="_blank">hellocairo.ps</a>" , 504, 648);<br>
</blockquote>
<br></div>
You are missing the #include <cairo-ps.h><br>
<br>
</blockquote></div><br>