Using the 1.8.6 source download the following test program results in a blank PS file on both windows and linux:<br><br>cairo_surface_t *surface;<br>cairo_t *cr;<br><br>surface = cairo_ps_surface_create ("<a href="http://hellocairo.ps">hellocairo.ps</a>" , 504, 648);<br>
cr = cairo_create (surface);<br> cairo_set_source_rgb(cr, 0, 0, 0);<br> cairo_select_font_face (cr, "serif", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL);<br> cairo_set_font_size (cr, 40.0);<br>
cairo_move_to(cr, 10.0, 50.0);<br> cairo_show_text(cr, "Hello, Cairo!");<br> drawDashLine(cr);<br> cairo_show_page(cr);<br> cairo_destroy(cr);<br> cairo_surface_flush(surface);<br>
cairo_surface_finish(surface);<br> cairo_surface_destroy(surface);<br>