diff options
author | Ken Sharp <ken.sharp@artifex.com> | 2019-08-13 16:05:37 +0100 |
---|---|---|
committer | Ken Sharp <ken.sharp@artifex.com> | 2019-08-13 16:05:37 +0100 |
commit | 15d95340389f0f46bd214803ec19685c0a738a0e (patch) | |
tree | fc083aa0fcf893adcfc76d773c4df8516a285d93 /lib | |
parent | 8cc13d54850af14a07e72f73cca20e96ed01fd03 (diff) | |
download | ghostpdl-15d95340389f0f46bd214803ec19685c0a738a0e.tar.gz |
Deprecate .setpdfwrite
The .setpdfwrite operator nowadays does nothing more than increase the
VM threshold, which is relatively pointless so we're going to remove it.
In this commit; add a warning message to the .setpdfwrite operator so
that anyone using it will be warned. Remove usage from the various
shell scripts we provide.
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/dvipdf | 2 | ||||
-rwxr-xr-x | lib/ps2pdfwr | 2 | ||||
-rw-r--r-- | lib/ps2pdfxx.bat | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/dvipdf b/lib/dvipdf index 802aeabc6..f643087f3 100755 --- a/lib/dvipdf +++ b/lib/dvipdf @@ -43,4 +43,4 @@ fi # We have to include the options twice because -I only takes effect if it # appears before other options. -exec dvips -Ppdf $DVIPSOPTIONS -q -f "$infile" | $GS_EXECUTABLE $OPTIONS -q -P- -dSAFER -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sstdout=%stderr -sOutputFile="$outfile" $OPTIONS -c .setpdfwrite - +exec dvips -Ppdf $DVIPSOPTIONS -q -f "$infile" | $GS_EXECUTABLE $OPTIONS -q -P- -dSAFER -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sstdout=%stderr -sOutputFile="$outfile" $OPTIONS diff --git a/lib/ps2pdfwr b/lib/ps2pdfwr index 00f716208..fe30f070f 100755 --- a/lib/ps2pdfwr +++ b/lib/ps2pdfwr @@ -41,4 +41,4 @@ fi # We have to include the options twice because -I only takes effect if it # appears before other options. -exec "$GS_EXECUTABLE" $OPTIONS -q -P- -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sstdout=%stderr "-sOutputFile=$outfile" $OPTIONS -c .setpdfwrite -f "$infile" +exec "$GS_EXECUTABLE" $OPTIONS -q -P- -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sstdout=%stderr "-sOutputFile=$outfile" $OPTIONS "$infile" diff --git a/lib/ps2pdfxx.bat b/lib/ps2pdfxx.bat index a7345ff9e..be9781118 100644 --- a/lib/ps2pdfxx.bat +++ b/lib/ps2pdfxx.bat @@ -22,7 +22,7 @@ rem appears before other options. :run echo -sOutputFile#%2 >>"%TEMP%\_.at"2 copy /b /y "%TEMP%\_.at"2+"%TEMP%\_.at" "%TEMP%\_.at"2 >NUL -echo -c .setpdfwrite -f%1 >>"%TEMP%\_.at"2 +echo %1 >>"%TEMP%\_.at"2 %GSC% @"%TEMP%\_.at" @"%TEMP%\_.at"2 goto end |