From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,b3f92cc789e0b30e X-Google-Attributes: gidf7344,public X-Google-Thread: 1164f8,b3f92cc789e0b30e X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1994-10-20 19:21:02 PST Path: bga.com!news.sprintlink.net!howland.reston.ans.net!swrinde!sgiblab!sgigate.sgi.com!olivea!koriel!wnoc-sfc-news!wnoc-tyo-news!news.u-tokyo.ac.jp!sinetnews!hagi!ume!utktac!hiromi From: hiromi@tac.tsukuba.ac.jp (Hiromi Kimura(Univ. of Tsukuba)) Newsgroups: comp.sys.dec,comp.os.vms Subject: Re: GHOSTSCRIPT on VMS??? Message-ID: <1994Oct21.095613.1@utktac> Date: 21 Oct 94 00:56:13 GMT References: <1994Oct19.131144.8135@urz.unibas.ch> Sender: news@ume.cc.tsukuba.ac.jp Followup-To: comp.sys.dec Organization: Tandem Accelerator Center, University of Tsukuba Xref: bga.com comp.sys.dec:6543 comp.os.vms:20041 In article <1994Oct19.131144.8135@urz.unibas.ch>, pretot@ifi.unibas.ch (Gerald Pretot) writes: > Dear all > > This is my problem and I seem to need help: > > I would like to take a (printer) PostScript file (or/and encapsulated > postscript) and turn it into EPSI, ie. add the EPSI format image header > information. > > To my understanding ghostscript (gs) is able to do just that (and some > more). I have successfully downloaded two different versions (ready to > compile/run under VMS) of that package but was only able to run one of > them and that one did not do the EPSI conversion but just _display_ files. > It did not react to most of the option switches described for gs. The > other one gave me so much trouble while I tried to compile it, that I > finally gave up... You can find PS2EPSI.* stuff in the Ghostscript distribution. PS2EPSI.PS makes a preview header, PS2EPSI.BAT and PS2EPSI. are scripts for MSDOS and Unix system. Here is a PS2EPSI.COM procedure for VMS: -- cut here -- $ if p1.eqs."" then goto usage $! Ghostscript uses "outfile" to define the output file $ outfile :== 'p2' $ define/user sys$input 'p1' $ gs -q "-dNOPAUSE" "-dNODISPLAY" ps2epsi.ps $! We bracket the actual file with a few commands to help encapsulation $ append sys$input 'p2' /InitDictCount countdictstack def gsave save mark newpath $ $! Append the original onto the preview header $ append 'p1' 'p2' $ append sys$input 'p2' countdictstack InitDictCount sub { end } repeat cleartomark restore grestore $ exit $usage: $ write sys$input Usage: ps2epsi infile.ps outfile.epsi $ -- cut here -- I hope this helps you. ----+----1----+----2----+----3----+----4----+----5----+----6----+----7-- Hiromi Kimura, University of Tsukuba [Internet] hiromi@tac.tsukuba.ac.jp