>the file clearly was corrupt:
Well, the file clearly wasn't working as you wanted, but corrupt? I
don't think so.
>
>Error: /undefined in II*
Ah, this is characteristic. What you have is an EPS with TIFF preview.
This is a normal and valid EPS, but contains extra information that
must be removed to treat it as regular PostScript.
I understand GhostView will remove the preview, but this is not the
job of GhostScript.
>
>YOur first question:
>after %%EOF I found:
>
>%AI9_PrintingDataEnd
It looks to be as if this %%EOF wasn't the actual end of PostScript
(which might not have a %%EOF) but was the end of an embedded graphic
(EPS in EPS).
You really need to parse the EPS structure to know where to start
cutting.
>What do you mean with your last question? What is an AI file? Oh adobe illustrator. Yes. Presumably it is an adobe illustrator file. I got it with eps extension, but that says nothing.
Well, it might be an AI file or it might be a full EPS. An AI file may
be (but need not be) a cut down EPS, leaving out much that is repeated
every time, but which is vital for a PostScript interpreter.
So far the error suggests EPS rather than AI.
Aandi Inston