Menu

#15 Postscript output sometimes incomplete

closed-fixed
nobody
None
5
2004-02-03
2004-01-07
Lynn Kerby
No

I'm not sure why this is happening, but I keep creating
documents that are missing the final showpage when
printed as postscript to file. I've looked at the code and
it appears to always close the stream properly, but I'm
still getting files that don't print because they are
truncated.

I added a call to fflush() after outputing the final
showpage
in sp_module_print_plain_finish() and that seems to always
work.

Discussion

  • Lynn Kerby

    Lynn Kerby - 2004-01-07

    Patch to add fflush() on ps output stream before closing descriptor

     
  • Lauris Kaplinski

    Logged In: YES
    user_id=19294

    Thank you. I added this, and moved fclose to ::finish as well.

     
  • Lauris Kaplinski

    • status: open --> closed-fixed
     

Log in to post a comment.