Menu

#889 pdf output to stdout is empty

closed-fixed
nobody
Drivers (161)
5
2010-05-06
2010-04-29
roucarb
No

from http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=578311

$ 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

Discussion

  • roucarb

    roucarb - 2010-05-06

    Any news ?

     
  • Ethan Merritt

    Ethan Merritt - 2010-05-06

    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?

     
  • Ethan Merritt

    Ethan Merritt - 2010-05-06

    Never mind. The mechanism is somewhat different from png, but it does exist.
    OK, coming soon to CVS.

     
  • Ethan Merritt

    Ethan Merritt - 2010-05-06
    • status: open --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB