|
From: Peter D. <pc...@wi...> - 2007-09-14 06:28:21
|
I finally got around to implementing a quick and dirty cairopng hack
that Timothée intimated in March:*
diff -ru gnuplot-orig/term/cairo.trm gnuplot/term/cairo.trm
--- gnuplot-orig/term/cairo.trm 2007-09-13 23:12:53.000000000 -0700
+++ gnuplot/term/cairo.trm 2007-09-13 23:15:01.000000000 -0700
@@ -374,6 +374,7 @@
/* finish the page - cairo_destroy still has to be called for the whole documentation
* to be written */
+ cairo_surface_write_to_png(cairo_get_target(plot.cr), outstr);
cairo_show_page(plot.cr);
FPRINTF((stderr,"status =
%s\n",cairo_status_to_string(cairo_status(plot.cr))));
Problem is, it still produces a redundant PDF which gets truncated by
the PNG; how to go about suppressing the PDF output?
-----------
* http://sourceforge.net/mailarchive/message.php?msg_name=45F1A71F.6010506%40ens.fr
|