summaryrefslogtreecommitdiff
path: root/Resource
diff options
context:
space:
mode:
authorKen Sharp <ken.sharp@artifex.com>2023-02-27 11:43:36 +0000
committerKen Sharp <ken.sharp@artifex.com>2023-02-27 11:44:30 +0000
commitbad36261da603c6457080aa066ba5d53897add21 (patch)
tree143d8717d64606a221e4559ee0fad3c20d377dae /Resource
parentad3f17ad44d94268e20d8fea23e563557850fc56 (diff)
downloadghostpdl-bad36261da603c6457080aa066ba5d53897add21.tar.gz
Ghostscript + GhostPDF - remove -dNEWPDF
We've been using the new 'C' PDF interpreter as the default for the last two releases, with comparatively few problems. We've decided the time has come to remove the (deprecated) fallback to the old PostScript written PDF interpreter.
Diffstat (limited to 'Resource')
-rw-r--r--Resource/Init/pdf_main.ps19
1 files changed, 9 insertions, 10 deletions
diff --git a/Resource/Init/pdf_main.ps b/Resource/Init/pdf_main.ps
index ea0fe3765..32af17e33 100644
--- a/Resource/Init/pdf_main.ps
+++ b/Resource/Init/pdf_main.ps
@@ -1,4 +1,4 @@
-% Copyright (C) 2001-2022 Artifex Software, Inc.
+% Copyright (C) 2001-2023 Artifex Software, Inc.
% All Rights Reserved.
%
% This software is provided AS-IS with no warranty, either express or
@@ -218,7 +218,7 @@ DingbatsEncoding pop
% Redefine 'run' so it recognizes PDF files.
systemdict begin
-systemdict /NEWPDF known not {/NEWPDF //true def} if
+systemdict /OLDPDF known not {/OLDPDF //false def} if
% PostScript interface to the ghostpdf C-based interpreter
%
@@ -1149,7 +1149,7 @@ currentdict /PDFSwitches undef
/pdfavailable
{
- .PDFAvailable NEWPDF not or
+ .PDFAvailable OLDPDF or
} bind def
% <int> <int> dopdfpages -
@@ -1289,12 +1289,11 @@ currentdict /PDFSwitches undef
currentdict /runpdfstring .undef
/runpdfbegin { % <file> runpdfbegin -
- /NEWPDF where {/NEWPDF get} {//true} ifelse
+ /OLDPDF where {/OLDPDF get not} {//true} ifelse
{
newpdf_runpdfbegin
}
{
- (%stderr) (w) file (\n **** Warning: You are using the legacy PDF interpreter \(-dNEWPDF=false\) which is now deprecated and unsupported\n) writestring
userdict begin
% It turns out that the PDF interpreter uses memory more
% effectively if it is run under at least one level of save.
@@ -1334,7 +1333,7 @@ currentdict /runpdfstring .undef
/runpdfpagerange { % - runpdfpagerange <firstpage#> <lastpage#>
- /NEWPDF where {/NEWPDF get} {//true} ifelse
+ /OLDPDF where {/OLDPDF get not} {//true} ifelse
{
newpdf_runpdfpagerange
}
@@ -1522,7 +1521,7 @@ currentdict /runpdfstring .undef
} bind executeonly def
/dopdfpages { % firstpage# lastpage# dopdfpages -
- /NEWPDF where {/NEWPDF get} {//true} ifelse
+ /OLDPDF where {/OLDPDF get not} {//true} ifelse
{
newpdf_dopdfpages
}
@@ -1565,7 +1564,7 @@ currentdict /runpdfstring .undef
} bind executeonly def
/runpdfend {
- /NEWPDF where {/NEWPDF get} {//true} ifelse
+ /OLDPDF where {/OLDPDF get not} {//true} ifelse
{
newpdf_runpdfend
}
@@ -1671,7 +1670,7 @@ currentdict /EnablePageHandlerDevice undef
} bind executeonly def
/runpdf { % <file> runpdf -
- /NEWPDF where {/NEWPDF get} {//true} ifelse
+ /OLDPDF where {/OLDPDF get not} {//true} ifelse
{
dup type /filetype eq
{
@@ -2171,7 +2170,7 @@ currentdict /xref-char-dict undef
% Open a PDF file and read the header, trailer, and cross-reference.
/pdfopen { % <file> pdfopen <dict>
- /NEWPDF where {/NEWPDF get} {//true} ifelse
+ /OLDPDF where {/OLDPDF get not} {//true} ifelse
{
newpdf_pdfopen
}