🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: adobe.postscript.programming
2 messages
2 total messages Started by David_Behnke Thu, 11 Sep 2008 01:58
Stripping EPS before injection into postscript file
#183
Author: David_Behnke
Date: Thu, 11 Sep 2008 01:58
3 lines
1174 bytes
I'm currently parsing the windows binary format in 5.2 of the EPS 3.0 spec and scanning for %%BeginPreview ... %EndPreview to remove the previews and that's working fine.

I couldn't help noticing that the EPS file I got from Illustrator has a block of private data after the '%AI9_PrintingDataEnd' that's twice the size of the preceeding postscript. When I strip out everything after '%AI9_PrintingDataEnd' before injecting into my postscript, it seems to work just fine. Does anyone know whether this will work in the general case?
Re: Stripping EPS before injection into postscript file
#184
Author: Aandi_Inston
Date: Thu, 11 Sep 2008 06:53
11 lines
1277 bytes
I would be very cautious about such things. Certainly, you cannot in
general strip any comment from an EPS, because the PostScript may
choose to read the comment as data.

Illustrator has save options that can affect the EPS size, I think.
The main reason for the size is that it contains all of the design
extras, not just what is needed to print, to allow Illustrator to
re-open the file. Clearly not needed for printing, but you'd want to
be very sure you were removing stuff that wasn't needed.

Aandi Inston
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads