#144 EPS FILE DOES NOT PRINT

closed
nobody
None
5
2012-09-14
2012-08-10
Terry
No

All Encapsulated Postscript files written by gnuplot 4.2 do not print on any of our four local printers. The eps file written by gnuplot 4.0 does print. You'll find attached a tar file with two eps files. plotxy_5.eps was written by gnuplot 4.0 shipped with Redhat release 5. plotxy_6.eps was written by gnuplot 4.2 shipped with Redhat release 6. plotxy_5.eps prints on all our printers. plotxy_6.eps does not print on any of our printers. Both eps files contain showpage. I tried setting /Level1 to true, but the eps file still fails to print. A typical print command is: lpr -PHP-Color-LaserJet-4700 plotxy_6.eps

Discussion

  • Terry
    Terry
    2012-08-10

    TAR FILE WITH TWO EPS FILES

     
    Attachments
  • Ethan Merritt
    Ethan Merritt
    2012-08-10

    Three observations.

    1) gnuplot 4.2 is a rather old version (4.2 came out in 2007, 4.4 in 2010, 4.6 in 2012). Any fix we make to upstream gnuplot would appear in version 4.6.1 or later and presumably won't appear in RHEL any time soon..

    2) This really sounds to me like an issue to take up with Redhat. EPS files are by definition intended to be wrapped in some surrounding document and normally the installed printer filter chain takes care of that for you. I would guess that manually issuing the commands
    ps2ps plotxy_5.eps temp.ps; lpr temp.ps
    would work on your system. The trick is to configure the print queue to do the equivalent for you.

    3) I would nevertheless be very interested to learn what exactly it is about the eps output by newer gnuplot versions that makes it behave differently from your older version. If you do figure that out, please let us know!

     
  • Ethan Merritt
    Ethan Merritt
    2012-08-10

    Followup;

    In current gnuplot (4.6) there is an additional line in the eps output. Immediately following the line
    %%EndProlog
    is a line
    %% Pages: 1 1

    The commit note for this change says: "Add a %%Page statement in *.eps files, as current versions of standard tools seem to expect it." So if editing in this line makes your file printable, I think it is safe to say the the problem has already been fixed in gnuplot 4.6.

     
  • Ethan Merritt
    Ethan Merritt
    2012-08-10

    Sigh. Typo. Make that
    %%Page: 1 1

     
  • Terry
    Terry
    2012-08-13

    1) Insertion of "%%Pages 1 1" produces a file "plotxy_6e.eps" that does not print.
    2) The command line "ps2ps plot_6.eps" temp.ps ; lpr temp.ps" prints as desired.
    This remedies the trouble. We can add an extra line in the program that sends the EPS file to the printer. It should be transparent to users in our local work group.
    Your help is much valued and very effective. Well done.
    If it were possible to attach the output from the Linux command "diff," you could view the difference between plotxy_6.eps and temp.ps.
    I had already recommended to the local Computer System Administrator that Redhat be advised to ship a more recent version of gunplot.

     
  • Ethan Merritt
    Ethan Merritt
    2012-09-14

    • status: open --> closed
     
  • Ethan Merritt
    Ethan Merritt
    2012-09-14

    works in 4.6 as tested here