$ cat data
set terminal pdfcairo
plot '-' using 1:2 t '' with line
0 0
10 10
e
$ gnuplot < data > out.pdf
$ ls -l out.pdf
-rw-r--r-- 1 vinc17 vinc17 0 2010-04-18 21:25:41 out.pdf
This is a limitation of the current cairo libraries, I think. Gnuplot's cairo terminals (wxt pngcairo pdfcairo) share most of their code right up until the final call to write out the surface that has been created. The cairo libraries provide a routine cairo_surface_write_to_png_stream() that can stream a png image to stdout. But I do not see a parallel routine for streaming pdf output. I don't know if this is expected to change soone. Perhaps a query to the cairo development team?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Any news ?
This is a limitation of the current cairo libraries, I think. Gnuplot's cairo terminals (wxt pngcairo pdfcairo) share most of their code right up until the final call to write out the surface that has been created. The cairo libraries provide a routine cairo_surface_write_to_png_stream() that can stream a png image to stdout. But I do not see a parallel routine for streaming pdf output. I don't know if this is expected to change soone. Perhaps a query to the cairo development team?
Never mind. The mechanism is somewhat different from png, but it does exist.
OK, coming soon to CVS.