#include #include #include void destroy (void *data) { fprintf (stderr, "Destroy!\n"); } int main (int argc, char **argv) { cairo_t *cr; FILE *f; cr = cairo_create (); f = fopen ("size_zero.pdf", "w"); cairo_set_target_pdf (cr, f, 8.5, 11, 72, 72); cairo_select_font_face (cr, "Bitstream Vera Sans", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_NORMAL); cairo_set_font_size (cr, 0); cairo_move_to (cr, 200, 200); cairo_show_text (cr, "Hello"); cairo_show_page (cr); cairo_destroy (cr); fclose (f); return 0; }