Re: Ghostview (latest version) won't work



twisted0n3@xxxxxxxxx wrote in
news:1151364864.084879.220570@xxxxxxxxxxxxxxxxxxxxxxxxxxxx:

to sum up various posts of yours :
It looks like an EPS file in its internal structure. Syntax and such.
....

GSview 4.8 2006-02-25
AFPL Ghostscript 8.54 (2006-05-17)
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:/none/of/your/business.eps
Error: /undefined in C
....

However GSView also tells you it is not a DSC file. So it cannot be an
EPS (EPS must be DSC compliant).

... The first few lines are:
231.21893 392.20214 C
224.89342 391.94362 224.89342 391.94362 220.59184 392.97855 C
228.43502 398.41398 235.26709 402.81420 245.13534 418.08501 C
251.96683 428.95587 261.07569 439.05061 269.93169 440.08583 C
269.93169 440.08583 L
@c
S
As said by others, if the above REALLY are the bytes you have from
offset zero of your file, then definitely it is NOT a valid Postscript
or EPS (in the sense that it will error on execution, saying '/undefined
in C' or something very similar).

I guess this is how Adobe Illustrator documents appear.
....

If I read the sentence above correctly, the document was thus saved as
an Illustrator document (*.AI) , NOT as a Postscript...

Ergo it is NOT Postscript (nor EPS).

It may look like Postscript because AI native format was PostScript-
based until some version of AI (dunno which precisely. 8 ? 9 ?). But the
..AI file precisely lacked the Illustrator prolog that would make it a
valid Postscript. This sounds very much like the situation you are in.

To confirm that, I made the following test (with Illustrator CS2) :
I saved an (empty) document as an AI 3 format. Here is the verbatim copy
of the file, starting at file offset zero :

%!PS-Adobe-3.0
%%Creator: Adobe Illustrator(TM) 3.2
%%AI8_CreatorVersion: 12.0.0
%%For: (xxxxx) (xxxxx)
%%Title: (Untitled-1.ai)
%%CreationDate: 6/27/2006 11:40 AM
%%BoundingBox: 0 0 0 0
%%DocumentProcessColors:
%%DocumentNeededResources: procset Adobe_packedarray 2.0 0
%%+ procset Adobe_cshow 1.1 0
%%+ procset Adobe_customcolor 1.0 0
%%+ procset Adobe_pattern_AI3 1.0 0
%%+ procset Adobe_Illustrator_AI3 1.0 1
%AI3_ColorUsage: Color
%%CMYKCustomColor: 1 1 1 1 ([Registration])
%AI3_TemplateBox: 306.5 395.5 306.5 395.5
%AI3_TileBox: 13 13 599 779
%AI3_DocumentPreview: None
%%PageOrigin:0 0
%AI7_GridSettings: 72 8 72 8 1 0 0.8 0.8 0.8 0.9 0.9 0.9
%AI9_Flatten: 1
%AI12_CMSettings: 00.MS
%%EndComments
%%BeginProlog
%%IncludeResource: procset Adobe_packedarray 2.0 0
Adobe_packedarray /initialize get exec
%%IncludeResource: procset Adobe_cshow 1.1 0
%%IncludeResource: procset Adobe_customcolor 1.0 0
%%IncludeResource: procset Adobe_pattern_AI3 1.0 0
%%IncludeResource: procset Adobe_Illustrator_AI3 1.0 1
%%EndProlog
%%BeginSetup
Adobe_cshow /initialize get exec
Adobe_customcolor /initialize get exec
Adobe_pattern_AI3 /initialize get exec
Adobe_Illustrator_AI3 /initialize get exec
%AI3_BeginPattern: (Grid on Grid)
(Grid on Grid) 10.457 10.457 73.207 73.2051 [
%AI3_Tile
(0 O 0 R 0.027451 0.027451 0.14902 0 k
0.027451 0.027451 0.14902 0 K
) @
....

It may look and taste very much like DSC / Postscript but it is not (or
at least, it is not a self-sufficient PS code).

If I make the same test, but saving as AI 8 format I get something that
is executable with GS (but still not a valid EPS, since it lacks the
EPSF header) :

%!PS-Adobe-3.0
%%Creator: Adobe Illustrator(R) 8.0
%%AI8_CreatorVersion: 12.0.0
%%For: (PUBLISHING) (Unisys Italia S.p.A.)
%%Title: (Untitled-1.ai)
%%CreationDate: 6/27/2006 11:45 AM
%%BoundingBox: 0 0 0 0
%%HiResBoundingBox: 0 0 0 0
%%DocumentProcessColors:
%%DocumentSuppliedResources: procset Adobe_level2_AI5 1.2 0
%%+ procset AGM_Gradient 1.0 0
%%+ procset Adobe_ColorImage_AI6 1.3 0
%%+ procset Adobe_Illustrator_AI5 1.3 0
%%+ procset Adobe_pattern_AI5 1.0 0
%%+ procset Adobe_cshow 2.0 8
%%+ procset Adobe_shading_AI8 1.0 0
%AI5_FileFormat 4.0
%AI3_ColorUsage: Color
%AI7_ImageSettings: 0
%%CMYKCustomColor: 1 1 1 1 ([Registration])
%%CMYKProcessColor: 1 1 0 0 (Global Deep Sea Blue)
%%+ 0.8 0 1 0 (Global Green)
%%+ 1 0 0 0 (Global Pure Cyan)
%%+ 0 0 1 0 (Global Pure Yellow)
%%+ 0 1 1 0 (Global Red)
%%+ 0 0.5 1 0 (Global Squash)
%%AI6_ColorSeparationSet: 1 1 (AI6 Default Color Separation Set)
%%+ Options: 1 16 0 1 1 1 0 0 0 0 1 1 1 18 0 0 0 0 0 0 0 0 -1 -1 0 0 0 0
1 0 0 0 0 1 0 0 0 0 0 1 2 3 4
%%+ PPD: 1 21 0 0 60 45 2 2 1 0 0 1 0 0 0 0 0 0 0 0 1 0 ()
%AI3_TemplateBox: 306.5 395.5 306.5 395.5
%AI3_TileBox: 13 13 599 779
%AI3_DocumentPreview: None
%AI5_ArtSize: 612 792
%AI5_RulerUnits: 2
%AI5_ArtFlags: 0 0 0 1 0 0 1 0 0
%AI5_TargetResolution: 800
%AI5_NumLayers: 1
%AI8_OpenToView: -303 772.2471 0.81 1004 659 26 0 0 9 69 0 0
%AI5_OpenViewLayers: 7
%%PageOrigin:0 0
%AI7_GridSettings: 72 8 72 8 1 0 0.8 0.8 0.8 0.9 0.9 0.9
%AI9_Flatten: 1
%AI12_CMSettings: 00.MS
%%EndComments
%%BeginProlog
%%BeginResource: procset Adobe_level2_AI5 1.2 0
%%Title: (Adobe Illustrator (R) Version 5.0 Level 2 Emulation)
%%Version: 1.2 0
%%CreationDate: (04/10/93) ()
%%Copyright: ((C) 1987-1996 Adobe Systems Incorporated All Rights
Reserved)
userdict /Adobe_level2_AI5 26 dict dup begin
....

Illustrator CS2 does not allow to save as AI 4/5/6/7 formats so I cannot
tell you what they look like. Possibly, you are in one of those cases.

Hope this helps.
_______________________________________________________
François Robert
(to mail me, reverse character order in reply address)
.



Relevant Pages

  • Re: Add a EPS vector logo to a PS file
    ... Its entirely likely that GS needs explicit permission to access the file, many PS interpreters deliberately limit file access to prevent exploits in PostScript code. ... I have gotten a little closer, well at least I have the logo appearing on the page. ... %%EndPageComments ... %%+ procset Pscript_WinNT_ErrorHandler 5.0 0 ...
    (comp.lang.postscript)
  • Re: Mail Merge wont print
    ... the stuff you are seeing is the sort of PostScript code that would be ... If you have the other driver, ... You could also try outputting your labels to a new document, ... > %%+ procset Pscript-WinNT ErrorHandler 5.00 ...
    (microsoft.public.word.mailmerge.fields)