octave-bug-tracker
[Top][All Lists]
Advanced

[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, 28 Oct 2014 16:20:54 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:33.0) Gecko/20100101 Firefox/33.0

Follow-up Comment #4, bug #41141 (project octave):

This may be a little more involved than I thought.  I'm adding Ben Abbott to
the CC list since he understands this more than I do.

At least for the FLTK toolkit, the "printing" is done by gl2ps which can
produce eps output.  I think what happens is that if you print with a default
format that gl2ps supports, like ps or pdf, then it generates it directly. 
Only if you call for an output which it doesn't support will it invoke
Ghostscript.  In this case it first calls gl2ps to create postscript and then
calls Ghostscript to change that input into something else.  I'm running
Ghostscript 9.05 which doesn't have the eps2write device.  With your patch
installed, I only get an error if I use a device I don't have.


octave:26> print -deps fltk.eps
octave:27> print -depswrite fltk.eps
octave:28> print -deps2write fltk.eps
Unknown device: eps2write
Unrecoverable error: undefined in .uninstallpagedevice
Operand stack:
    defaultdevice
octave:29> print -dfoobar fltk.eps
Unknown device: foobar
Unrecoverable error: undefined in .uninstallpagedevice
Operand stack:
    defaultdevice


I think there is another clue in the bottom of __print_parse_opts__.m in the
function gs_aliases()


## eps, epsc, eps2, epsc2 are not included here because those are
## are generated by the graphics toolkit.


Indeed, for gnuplot printing the same thing seems to apply.  Any
postscript/eps output is generated by gnuplot itself.  It's only if we need to
change the output to some other format is Ghostscript invoked.

I'm uploading a new patch based on yours which changes two things.  First, In
__gnuplot_print__ there was still an if/then changing the Postscript level to
1 when 'eps' or 'epsc' was used.  Second, in __print_parse_opts__.m the number
of file suffixes was bigger than the number of devices because pswrite was
deleted.  So I deleted the suffix that was supposed to match up with the
pswrite device.




(file #32330)
    _______________________________________________________

Additional Item Attachment:

File name: print.diffs                    Size:6 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?41141>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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