[tex-k] Re: dvips premature end of file in binary section

Tom Kacvinsky tjk@ams.org
Thu, 1 Feb 2001 19:17:22 -0500 (EST)


Hi Tom,

On Thu, 1 Feb 2001, Tomas G. Rokicki wrote:

> I'd say the problem is whatever is converting CRLF->LF.  Are you
> moving the file across machines in text mode?  I mean, by definition
> a file with %%BeginBinary is binary, not text . . .
>

Unfortunately, this is not the case.  Photoshop ASCII EPS files (i.e., the data
following the image operator is in hexadecimal rather than binary) have the
image data (along with the image operator) wrapped in a %%BeginBinary and
%%EndBinary pair.  Using -K is not always feasible option because sometimes EPS
files use %% in the data stream.  Illustrator, for example, writes out PS code
that will dynamically strip out certain PS code (for instance, non-imaging
things like patterns, palettes, etc... that Illustrator uses when the file is
opened, but is never used in imaging).  And this code stripping is keyed off of
lines that start with `%' !  From this, one can see that problems will arise if
this code stripping is ever based on %%.  I have never seen an example of this,
but I am sure something can be cooked up with ASCII85 encoded data, etc...

Tom