Newsgroups: comp.lang.postscript Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!caen!mtu.edu!mtu.edu!rel From: rel@mtu.edu (Robert Landsparger) Subject: Re: Converting PS to EPS Message-ID: <1991Apr3.090403.13355@mtu.edu> Keywords: convert postscript encapsulated postscript error Sender: news@mtu.edu Reply-To: rel@mtu.edu (Robert Landsparger) Organization: Michigan Technological University References: <6119@crystal8.UUCP> Distribution: comp.lang.postscript Date: Wed, 3 Apr 91 09:04:03 GMT In article <6119@crystal8.UUCP>, dalessio@motcid.UUCP (Mario D'Alessio) writes: |> I have a postscript file (extracted from a previoulsly posted |> file containing different logos. Apologies to the creator) which |> prints the "Star Trek: The Next Generation" logo. I converted it |> to an EPS file to pull into a desktop publishing program (Interleaf |> on a Sun). When I try to print it, I get the following error message |> from the printer log file: |> |> %%[ Error: invalidrestore; OffendingCommand: restore ]%% |> %%[ Flushing: rest of job (to end-of-file) will be ignored ]%% |> |> Can anyone tell me what causes this? I have printed EPS files |> before with no problems. Or maybe I can get a copy of the logo |> already as an EPS file. I ran into this problem also with a PS file that I wrote. I am not sure what the problem was, but I worked up a "walk-around". I'll do my best to explain it. This is done to the original PS file, before you do the PS->EPS conversion. You need to add a 'mark' and a 'cleartomark' around the "script" portion of you PS file. ie: ----------------------------------------- %! %%BeginProlog /aprocedure { pop } def /bprocedure { pop } def %%EndProlog %%BeginProcSet mark %% this is added 1 aprocedure 2 bprocedure showpage cleartomark %% this is added %%Trailer ------------------------------------------ Hope this will be of help. --bob -- USER: Can I get a list of *all* the unix commands? CONSULTANT: man -k - | lpr - USER: huh? +-------------------------------------------------------------------------+ | Robert E. Landsparger (rel@mtu.edu) - Computing Technology Services | Michigan Technological University, Houghton, MI 49931 (906) 487-2110 +--------------------------------------------------------------------+ | The above comments do not always represent those of my employer. +