summaryrefslogtreecommitdiff
path: root/lib/ps2epsi.bat
blob: b5ac5c28f26d11e3d514759c84b9603f432b6968 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
@echo off

if %1/==/ goto usage
if %2/==/ goto usage

call "%~dp0gssetgs.bat"

set infile=%~1
set outfile=%~2

rem Now convert the input to EPSF and add the Preview to the EPSF file
%GSC% -q -dNOOUTERSAVE -dNODISPLAY -dLastPage=1 -sOutputFile=%outfile% --permit-file-read=%infile% -- %~dp0ps2epsi.ps %infile%

goto end

:usage
echo "Usage: ps2epsi <infile.ps> <outfile.epi>"

:end