[bug-gs] Re: Ghostscript with matlab |

Ray Johnston ray.johnston at artifex.com
Tue Jul 13 12:21:58 PDT 2004


Peter,

You are probably better off working through the Matlab support
and/or groups.

I don't really know much about Matlab, but AFAIK, it exports
EPS and PostScript from the 'print' function (I referred to
http://www.mathworks.com/support/tech-notes/1100/1102.html)

It appears that some tool is sending invalid PostScript to
Ghostscript, possibly due to missing a PS ProcSet. The
error message "/undefined in Invalid" would be expected if
a file contained a token "Invalid" since this is not a
valid PostScript operator or predefined element.

In order for me to tell more, I'd need to see the PostScript
that is being fed to Ghostscript.

I am curious about the invocation of Ghostscript from Matlab --
is Ghostscript part of the standard Matlab distribution ?

Regards,
Ray Johnston
_______________________________________________________________

Peter Sroga wrote:

> Hello Ray,
> I saw your post regarding ghostscript from couple of years ago and I thought
> that maybe you can help me.
> I am getting the following error while trying to run simulations under Matlab.
> This is the error:
> 
> ======================
> ?? Error using ==> print
> Error using ==> c:/matlab6p5p1/toolbox/matlab/graphics/private/ghostscript
> Problem converting PostScript. GhostScript returned error:
> GS>Error: /undefined in Invalid
> Operand stack:
> 
> Execution stack:
>    %interp_exit   .runexec2   --nostringval--   --nostringval--  
> --nostringval--   2   %stopped_push   --nostringval--   --nostringval--  
> %loop_continue   2   3   %oparray_pop   --nostringval--   --nostringval--  
> false   1   %stopped_push   .runexec2   --nostringval--   --nostringval--  
> --nostringval--   2   %stopped_push   --nostringval--   --nostringval--  
> --nostringval--
> Dictionary stack:
>    --dict:907/941(G)--   --dict:0/20(G)--   --dict:51/200(L)--
> Current allocation mode is local
> Current file position is 8
> GS>Bad command or file name
> ======================
> 
> 
> Thanks in advance.
> 
> --
> Peter A. Sroga
> Graduate Student
> Computer Science and Engineering Department
> Mississippi State University
> 325 Butler Hall
> Mississippi State, MS 39762
> 
> 
> 
> 
> 
> 
> 

-- 
Ray Johnston
Director of Engineering                          Tel: (714) 484-0376
Artifex Software Inc.                            Fax: (714) 220-1022
______________________________________________________________________



More information about the bug-gs mailing list