|
1234567891011121314151617181920212223242526272829303132333435363738 |
- @echo off
-
-
- if %1/==/ goto usage
- if %2/==/ goto usage
-
- call gssetgs.bat
- set infile=%1
- set outfile=%2
-
-
- %GSC% -q -dNOPAUSE -dBATCH -dSAFER -dDELAYSAFER -sDEVICE=bbox -sOutputFile=NUL %infile% 2> %outfile%
-
- %GSC% -q -dNOPAUSE -dSAFER -dDELAYSAFER -sDEVICE=bit -sOutputFile=NUL ps2epsi.ps < %infile%
-
- echo %%%%Page: 1 1 >> %outfile%
- echo %%%%BeginDocument: %outfile% >> %outfile%
- echo /InitDictCount countdictstack def gsave save mark newpath >> %outfile%
- echo userdict /setpagedevice /pop load put >> %outfile%
-
-
- %GSC% -q -dNOPAUSE -dBATCH -dSAFER -dDELAYSAFER -sDEVICE=bit -sOutputFile=NUL cat.ps
-
-
- echo %%%%EndDocument >> %outfile%
- echo countdictstack InitDictCount sub { end } repeat >> %outfile%
- echo cleartomark restore grestore >> %outfile%
-
- goto end
-
- :usage
- echo "Usage: ps2epsi <infile.ps> <outfile.epi>"
-
- :end
|