I export my MATLAB figure to a PostScript file using CMYK colors, with the following command:
print -cmyk -dpsc2 filename.ps
When I try to view the exported PostScript file using GhostView, I get the following error:
GSview 4.3 2002-04-30 Unknown in Comments section at line 6: %%DocumentProcessColors: Cyan Magenta Yellow Black
Unknown in Page section at line 169: %%BeginObject: obj1
Unknown in Page section at line 108359: %%EndObject
Warning: code included between setup and first page AFPL Ghostscript 7.04 (2002-01-31) Copyright (C) 2001 artofcode LLC, Benicia, CA. All rights reserved. This software comes with NO WARRANTY: see the file PUBLIC for details. Displaying DSC file H:/cases/982497/test12.ps Displaying page 1 Error: /syntaxerror in -file- Operand stack: Execution stack: %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- false 1 %stopped_push 1 3 %oparray_pop 1 3 %oparray_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval--
Dictionary stack: --dict:1015/1123(ro)(G)-- --dict:0/20(G)-- --dict:71/200(L)-- --dict:94/160(L)-- --dict:9/91(L)-- Current allocation mode is local Last OS error: No such file or directory
Best Answer