Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: hiromi@tac.tsukuba.ac.jp (Hiromi Kimura(Univ. of Tsukuba))
Subject: Re: GHOSTSCRIPT on VMS???
Date: 21 Oct 94 00:56:13 GMT	[thread overview]
Message-ID: <1994Oct21.095613.1@utktac> (raw)
In-Reply-To: 1994Oct19.131144.8135@urz.unibas.ch

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


  reply	other threads:[~1994-10-21  0:56 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-10-19 13:11 GHOSTSCRIPT on VMS??? Gerald Pretot
1994-10-21  0:56 ` Hiromi Kimura(Univ. of Tsukuba) [this message]
  -- strict thread matches above, loose matches on Subject: below --
1994-10-19 13:12 Gerald Pretot
1994-10-19 17:02 ` Gerald Pretot
1994-10-19 13:13 Gerald Pretot
1994-10-19 13:14 Gerald Pretot
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox