[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #41141] pswrite device removed from Ghostscrip

From: Rik
Subject: [Octave-bug-tracker] [bug #41141] pswrite device removed from Ghostscript (print scripts need updating)
Date: Tue, 07 Jan 2014 19:48:39 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:26.0) Gecko/20100101 Firefox/26.0


                 Summary: pswrite device removed from Ghostscript (print
scripts need updating)
                 Project: GNU Octave
            Submitted by: rik5
            Submitted on: Tue 07 Jan 2014 11:48:38 AM PST
                Category: Plotting
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.8.0
        Operating System: Microsoft Windows



The pswrite device in Ghostscript has been deprecated since 12/15/2010.  In
Ghostscript versions >= 9.09 it is no longer even compiled in by default. 
This is a problem for Octave because the default device when the extension is
.ps is pswrite.

The fix seems relatively easy, to replace pswrite with ps2write or epswrite if
version 1 conformance is required.

The following documentation was taken from

PS2 writer

The ps2write device outputs postscript language levels 2 and 3. Please refer
to Ps2ps2.htm for the ps2write device options. It is recommnded that this
device is used for PostScript output, unless level 1 PostScript is required in
which case you must use the epswrite device below.

EPS writer

The epswrite device outputs encapsulated postscript. This device is now
deprecated and should only be used when level 1 PostScript output is

I grepped through the m-files for pswrite and then condensed the list to the
instances that would need changing.  They are

./plot/util/private/__print_parse_opts__.m:302:  if (strcmp (arg_st.devopt,
./plot/util/private/__print_parse_opts__.m:402:%! assert (opts.devopt,
./plot/util/private/__print_parse_opts__.m:406:%! assert
(opts.ghostscript.device, "pswrite");
./plot/util/private/__print_parse_opts__.m:414:%! assert (opts.devopt,
./plot/util/private/__print_parse_opts__.m:418:%! assert
(opts.ghostscript.device, "pswrite");
./plot/util/private/__print_parse_opts__.m:647:  aliases.ps = "pswrite";
./plot/util/private/__print_parse_opts__.m:649:  aliases.psc = "pswrite";


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]