Archive: IDL EPS files w/Windows MetaFile preview may not display in GSView w/selected "Ignore DCS" option
Anonym
Topic:
An EPS file that is created via the IDL "PS" device that includes an embedded Windows MetaFile preview can fail to display in the GSView application when GSView is configured to ignore DSC (Adobe Document Structuring Conventions) comments.Discussion:
For example, suppose an EPS file is created in IDL with the following following "PS" DEVICE keyword settings:
If this EPS file is opened with the GSView v4.8 application which has been configured with the following menu option selected:
then the EPS file will fail to display in GSView and instead will result in an application error message like the following:
GSview 4.8 2006-02-25
Unknown in Comments section at line 6:
%%DocumentData: Clean7bit
Unknown in Comments section at line 11:
%%DocumentNeededResources: (atend)
Unknown in Page section at line 363:
%%PageRequirements: color
Unknown in Page section at line 364:
%%PageResources: (atend)
Unknown in Page section at line 369:
%%IncludeResource: font Helvetica
Unknown in Page section at line 508:
%%PageResources: font Helvetica
Unknown in Trailer section at line 511:
%%DocumentNeededResources: font Helvetica
AFPL Ghostscript 8.53 (2005-10-20)
Copyright (C) 2005 artofcode LLC, Benicia, CA. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Displaying DSC file C:/testing/test.eps
Displaying page 1
Loading NimbusSanL-Regu font from C:\Program Files\gs\fonts/n019003l.pfb... 2294928 914644 1637576 317290 2 done.
Warning: EPS file must not use /serverdict
Warning: EPS file must not use /serverdict
AFPL Ghostscript 8.53 (2005-10-20)
Copyright (C) 2005 artofcode LLC, Benicia, CA. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Displaying non DSC file C:/testing/test.eps
Error: /undefined in ÅÐÓÆ
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 1 3 %oparray_pop 1 3 %oparray_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval--
Dictionary stack:
--dict:1132/1686(ro)(G)-- --dict:0/20(G)-- --dict:107/200(L)--
Current allocation mode is local
Last OS error: No such file or directory
Warning: EPS file must not use /quit
--- Begin offending input ---
ÅÐÓÆ -² K² ®@ ÿÿ%!PS-Adobe-3.0 EPSF-3.0
%%BoundingBox: 0 0 504 360
%%Title: Graphics produced by IDL
%%For: idl@TESTHOST, C:\testing\test
%%Creator: IDL Version 6.3, Microsoft Windows (Win32 x86 m32)
%%CreationDate: Tue Apr 17 13:24:24 2007
%%DocumentData: Clean7bit
%%Requirements: color
%%LanguageLevel: 1
%%PageOrder: Ascend
%%Pages: (atend)
%%DocumentNeededResources: (atend)
%%EndComments
%%BeginPreview: 128 128 8 328
%000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
%000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
%000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
%000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
%000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
%00000000000000000000000000000000
--- End offending input ---
file offset = 1024
gsapi_run_string_continue returns -101
To correct this problem, unselect the "Ignore DCS" setting in GSView through the menu item:
Solution:
[Edit this field in the IDL-based Tech Tip Editor, v62]