diff options
-rw-r--r-- | gs/Resource/Init/pdf_base.ps | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gs/Resource/Init/pdf_base.ps b/gs/Resource/Init/pdf_base.ps index 9697357a3..11af45f9d 100644 --- a/gs/Resource/Init/pdf_base.ps +++ b/gs/Resource/Init/pdf_base.ps | |||
@@ -103,8 +103,10 @@ pdfdict begin | |||
103 | //true 1 index .namestring { | 103 | //true 1 index .namestring { |
104 | //num-chars-dict exch known and | 104 | //num-chars-dict exch known and |
105 | } forall { % perhaps, it's a malformed number. | 105 | } forall { % perhaps, it's a malformed number. |
106 | PDFSTOPONERROR {//true}{ | ||
106 | pop pop pop 0 //false | 107 | pop pop pop 0 //false |
107 | ( looks like a malformed number, replacing with 0.) pdfformaterror | 108 | ( looks like a malformed number, replacing with 0.) pdfformaterror |
109 | } ifelse | ||
108 | } { | 110 | } { |
109 | //true % punt | 111 | //true % punt |
110 | } ifelse | 112 | } ifelse |
@@ -192,7 +194,11 @@ currentdict /num-chars-dict .undef | |||
192 | pop | 194 | pop |
193 | { | 195 | { |
194 | %% If it looks like a number, try to deal with it as such | 196 | %% If it looks like a number, try to deal with it as such |
195 | dup {.pdftokenerror} stopped | 197 | PDFSTOPONERROR { |
198 | dup .pdftokenerror | ||
199 | }{ | ||
200 | dup {.pdftokenerror} stopped | ||
201 | } ifelse | ||
196 | { pop | 202 | { pop |
197 | %% But if it fails, fall back to converting into a anem. | 203 | %% But if it fails, fall back to converting into a anem. |
198 | %% This will propagate through and cause different | 204 | %% This will propagate through and cause different |