home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2000 August
/
PCWorld_2000-08_cd.bin
/
Software
/
TemaCD
/
ghostscr
/
gs601w32.exe
/
gs6.01
/
lib
/
ps2epsi.bat
< prev
next >
Wrap
DOS Batch File
|
2000-03-09
|
707b
|
27 lines
@echo off
@rem $Id: ps2epsi.bat,v 1.1 2000/03/09 08:40:40 lpd Exp $
if "%1"=="" goto usage
if "%2"=="" goto usage
set infile=%1
set outfile=%2
rem Ghostscript uses %outfile% to define the output file
gs -q -dNOPAUSE -sDEVICE=bit -sOutputFile=NUL ps2epsi.ps < %infile%
rem We bracket the actual file with a few commands to help encapsulation
echo /InitDictCount countdictstack def gsave save mark newpath > %outfile%
rem Append the original onto the preview header
copy %outfile% + %infile%
echo countdictstack InitDictCount sub { end } repeat >> %outfile%
echo cleartomark restore grestore >> %outfile%
goto end
:usage
echo "Usage: ps2epsi <infile.ps> <outfile.epi>"
:end