[cairo] postscript backend
Ricardo Markiewicz
gazer.arg at gmail.com
Wed Nov 24 13:10:00 PST 2004
hi all ... i'm triying to save to postcript but somethings gone wrong.
Mi code look like :
w = h = 300;
fp = fopen ("temp.ps", "w");
cr = cairo_create (cr);
cairo_set_target_ps (cr, fp, w/96.0f, h/96.0f, 300, 300);
do_draw();
cairo_show_page (cr);
cairo_destroy (cr);
fclose (fp);
The PS file is generated "ok", but when i want to see it with Gostview
or ggv a white paper are show. If i change the paper size (to A4 for
example), some drawing is show at bottom, because (0,0) in postcript
is in the lower-left corner .... what i'm doing wrong?
thx!
Ricardo.
More information about the cairo
mailing list