home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Geek Gadgets 1
/
ADE-1.bin
/
ade-dist
/
ghostscript-2.6.2-src.tgz
/
tar.out
/
fsf
/
ghostscript
/
ps2epsi.bat
< prev
next >
Wrap
DOS Batch File
|
1996-09-28
|
656b
|
26 lines
@echo off
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 -dNODISPLAY 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