[gs-commits] ghostpdl branch, master, updated. jbig2dec-0.14-1563-g15d9534

[email protected] (Ken Sharp)
Newsgroups gmane.comp.printing.ghostscript.cvs
Message-ID <[email protected]>
The ghostpdl branch, master has been updated
       via  15d95340389f0f46bd214803ec19685c0a738a0e (commit)
      from  8cc13d54850af14a07e72f73cca20e96ed01fd03 (commit)

----------------------------------------------------------------------
commit 15d95340389f0f46bd214803ec19685c0a738a0e
Author: Ken Sharp <[email protected]>
Date:   Tue Aug 13 16:05:37 2019 +0100

    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.

diff --git a/Resource/Init/gs_pdfwr.ps b/Resource/Init/gs_pdfwr.ps
index 00c19fa..c158a8f 100644
--- a/Resource/Init/gs_pdfwr.ps
+++ b/Resource/Init/gs_pdfwr.ps
@@ -282,6 +282,12 @@ languagelevel 2 .setlanguagelevel
 % The ps2pdf* scripts invoke this.
 /.setpdfwrite {		% - .setpdfwrite -
                 % Set a large VM threshold to reduce garbage collection.
+  (\n**** WARNING: The .setpdfwrite operator has been deprecated and will be removed entirely\n) print
+  (              in the next release of Ghostscript. The functionality of this operator has\n) print
+  (              been reduced to increasing the size of the VM threshold. If you believe you\n) print
+  (              have a real need for this then you should replace your call to .setpdfwrite\n) print
+  (              with:\n\n) print
+  (                  3000000 setvmthreshold\n\n) print
   currentuserparams /VMThreshold get 3000000 .max setvmthreshold
 } bind def
 
diff --git a/lib/dvipdf b/lib/dvipdf
index 802aeab..f643087 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 00f7162..fe30f07 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 a7345ff..be97811 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
 


Summary of changes:
 Resource/Init/gs_pdfwr.ps | 6 ++++++
 lib/dvipdf                | 2 +-
 lib/ps2pdfwr              | 2 +-
 lib/ps2pdfxx.bat          | 2 +-
 4 files changed, 9 insertions(+), 3 deletions(-)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.