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

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

[Octave-bug-tracker] [bug #44186] print command gives incorrect postscri


From: John Donoghue
Subject: [Octave-bug-tracker] [bug #44186] print command gives incorrect postscript file
Date: Mon, 16 Feb 2015 20:11:52 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko

Follow-up Comment #51, bug #44186 (project octave):

Or in __ghostscript__.m, before using the opts.device:


  % check version  number and use eps2write if required
  if (dos_shell)
    ver_cmd = sprintf("%s -v", strrep (opts.binary, '/', '\'));
  else
    ver_cmd = sprintf("%s -v", opts.binary);
  endif
  [sout, vertext] = system(ver_cmd);
  vername= 'Ghostscript ';
  gs_version = sscanf(vertext(strfind(vertext, vername) +
length(vername):end), "%f", 1);
  
  if (opts.device == "epswrite" && gs_version >= 9.10)
    opts.device = "eps2write";
  endif 



    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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