diff options
-rw-r--r-- | Resource/Init/pdf_base.ps | 2 | ||||
-rw-r--r-- | Resource/Init/pdf_draw.ps | 14 | ||||
-rw-r--r-- | Resource/Init/pdf_font.ps | 29 | ||||
-rw-r--r-- | Resource/Init/pdf_main.ps | 6 | ||||
-rw-r--r-- | Resource/Init/pdf_ops.ps | 11 |
5 files changed, 33 insertions, 29 deletions
diff --git a/Resource/Init/pdf_base.ps b/Resource/Init/pdf_base.ps index 2e28cdd71..02503eef8 100644 --- a/Resource/Init/pdf_base.ps +++ b/Resource/Init/pdf_base.ps | |||
@@ -157,7 +157,7 @@ currentdict /num-chars-dict .undef | |||
157 | { | 157 | { |
158 | dup ==only () = flush | 158 | dup ==only () = flush |
159 | } ifelse % PDFSTEP | 159 | } ifelse % PDFSTEP |
160 | } if % PDFDEBUG | 160 | } executeonly if % PDFDEBUG |
161 | 2 copy .knownget { | 161 | 2 copy .knownget { |
162 | exch pop exch pop exch pop exec | 162 | exch pop exch pop exch pop exec |
163 | } { | 163 | } { |
diff --git a/Resource/Init/pdf_draw.ps b/Resource/Init/pdf_draw.ps index 11eb485f2..fe3fc56c4 100644 --- a/Resource/Init/pdf_draw.ps +++ b/Resource/Init/pdf_draw.ps | |||
@@ -501,8 +501,8 @@ end | |||
501 | ( Output may be incorrect.\n) pdfformaterror | 501 | ( Output may be incorrect.\n) pdfformaterror |
502 | //pdfdict /.gs_warning_issued //true .forceput | 502 | //pdfdict /.gs_warning_issued //true .forceput |
503 | PDFSTOPONERROR { /gs /undefined signalerror } if | 503 | PDFSTOPONERROR { /gs /undefined signalerror } if |
504 | } if | 504 | } executeonly if |
505 | } | 505 | } executeonly |
506 | ifelse | 506 | ifelse |
507 | } bind executeonly def | 507 | } bind executeonly def |
508 | 508 | ||
@@ -1152,7 +1152,7 @@ currentdict end readonly def | |||
1152 | .setglobal | 1152 | .setglobal |
1153 | pdfformaterror | 1153 | pdfformaterror |
1154 | } executeonly ifelse | 1154 | } executeonly ifelse |
1155 | } | 1155 | } executeonly |
1156 | { | 1156 | { |
1157 | currentglobal //pdfdict gcheck .setglobal | 1157 | currentglobal //pdfdict gcheck .setglobal |
1158 | //pdfdict /.Qqwarning_issued //true .forceput | 1158 | //pdfdict /.Qqwarning_issued //true .forceput |
@@ -1160,8 +1160,8 @@ currentdict end readonly def | |||
1160 | pdfformaterror | 1160 | pdfformaterror |
1161 | } executeonly ifelse | 1161 | } executeonly ifelse |
1162 | end | 1162 | end |
1163 | } ifelse | 1163 | } executeonly ifelse |
1164 | } loop | 1164 | } executeonly loop |
1165 | { | 1165 | { |
1166 | (\n **** Error: File has unbalanced q/Q operators \(too many q's\)\n Output may be incorrect.\n) | 1166 | (\n **** Error: File has unbalanced q/Q operators \(too many q's\)\n Output may be incorrect.\n) |
1167 | //pdfdict /.Qqwarning_issued .knownget | 1167 | //pdfdict /.Qqwarning_issued .knownget |
@@ -1175,14 +1175,14 @@ currentdict end readonly def | |||
1175 | .setglobal | 1175 | .setglobal |
1176 | pdfformaterror | 1176 | pdfformaterror |
1177 | } executeonly ifelse | 1177 | } executeonly ifelse |
1178 | } | 1178 | } executeonly |
1179 | { | 1179 | { |
1180 | currentglobal //pdfdict gcheck .setglobal | 1180 | currentglobal //pdfdict gcheck .setglobal |
1181 | //pdfdict /.Qqwarning_issued //true .forceput | 1181 | //pdfdict /.Qqwarning_issued //true .forceput |
1182 | .setglobal | 1182 | .setglobal |
1183 | pdfformaterror | 1183 | pdfformaterror |
1184 | } executeonly ifelse | 1184 | } executeonly ifelse |
1185 | } if | 1185 | } executeonly if |
1186 | pop | 1186 | pop |
1187 | 1187 | ||
1188 | % restore pdfemptycount | 1188 | % restore pdfemptycount |
diff --git a/Resource/Init/pdf_font.ps b/Resource/Init/pdf_font.ps index da07da5c2..81b7af13c 100644 --- a/Resource/Init/pdf_font.ps +++ b/Resource/Init/pdf_font.ps | |||
@@ -638,7 +638,7 @@ currentdict end readonly def | |||
638 | currentglobal 2 index dup gcheck setglobal | 638 | currentglobal 2 index dup gcheck setglobal |
639 | /FontInfo 5 dict dup 5 1 roll .forceput | 639 | /FontInfo 5 dict dup 5 1 roll .forceput |
640 | setglobal | 640 | setglobal |
641 | } if | 641 | } executeonly if |
642 | dup /GlyphNames2Unicode .knownget not { | 642 | dup /GlyphNames2Unicode .knownget not { |
643 | //true % No existing G2U, make one | 643 | //true % No existing G2U, make one |
644 | } { | 644 | } { |
@@ -668,10 +668,12 @@ currentdict end readonly def | |||
668 | pop % font-res font-dict encoding|null font-info | 668 | pop % font-res font-dict encoding|null font-info |
669 | pop % font-res font-dict encoding|null | 669 | pop % font-res font-dict encoding|null |
670 | //false % We built a GlyphNames2Unicode table, don't need to process further | 670 | //false % We built a GlyphNames2Unicode table, don't need to process further |
671 | }{ | 671 | } executeonly |
672 | { | ||
672 | //true % name is not Identity-V or H, fail by falling through | 673 | //true % name is not Identity-V or H, fail by falling through |
673 | }ifelse | 674 | }ifelse |
674 | } { | 675 | } executeonly |
676 | { | ||
675 | //true | 677 | //true |
676 | } ifelse % not a name, try as a dictionary (as specified) | 678 | } ifelse % not a name, try as a dictionary (as specified) |
677 | 679 | ||
@@ -759,9 +761,9 @@ currentdict end readonly def | |||
759 | PDFDEBUG { | 761 | PDFDEBUG { |
760 | (.processToUnicode end) = | 762 | (.processToUnicode end) = |
761 | } if | 763 | } if |
762 | } if | 764 | } executeonly if |
763 | } if | 765 | } executeonly if |
764 | } stopped | 766 | } executeonly stopped |
765 | { | 767 | { |
766 | .dstackdepth 1 countdictstack 1 sub | 768 | .dstackdepth 1 countdictstack 1 sub |
767 | {pop end} for | 769 | {pop end} for |
@@ -1298,19 +1300,20 @@ currentdict /eexec_pdf_param_dict .undef | |||
1298 | //pdfdict /.Qqwarning_issued //true .forceput | 1300 | //pdfdict /.Qqwarning_issued //true .forceput |
1299 | } executeonly if | 1301 | } executeonly if |
1300 | Q | 1302 | Q |
1301 | } repeat | 1303 | } executeonly repeat |
1302 | Q | 1304 | Q |
1303 | } PDFfile fileposition 2 .execn % Keep pdfcount valid. | 1305 | } executeonly PDFfile fileposition 2 .execn % Keep pdfcount valid. |
1304 | PDFfile exch setfileposition | 1306 | PDFfile exch setfileposition |
1305 | } ifelse | 1307 | } executeonly ifelse |
1306 | } { | 1308 | } executeonly |
1309 | { | ||
1307 | % PDF Type 3 fonts don't use .notdef | 1310 | % PDF Type 3 fonts don't use .notdef |
1308 | % d1 implementation adjusts the width as needed | 1311 | % d1 implementation adjusts the width as needed |
1309 | 0 0 0 0 0 0 | 1312 | 0 0 0 0 0 0 |
1310 | pdfopdict /d1 get exec | 1313 | pdfopdict /d1 get exec |
1311 | } ifelse | 1314 | } ifelse |
1312 | end end | 1315 | end end |
1313 | } bdef | 1316 | } executeonly bdef |
1314 | dup currentdict Encoding .processToUnicode | 1317 | dup currentdict Encoding .processToUnicode |
1315 | currentdict end .completefont exch pop | 1318 | currentdict end .completefont exch pop |
1316 | } bind executeonly odef | 1319 | } bind executeonly odef |
@@ -2124,9 +2127,9 @@ currentdict /CMap_read_dict undef | |||
2124 | (Will continue, but content may be missing.) = flush | 2127 | (Will continue, but content may be missing.) = flush |
2125 | } ifelse | 2128 | } ifelse |
2126 | } if | 2129 | } if |
2127 | } if | 2130 | } executeonly if |
2128 | /findresource cvx /undefined signalerror | 2131 | /findresource cvx /undefined signalerror |
2129 | } loop | 2132 | } executeonly loop |
2130 | } bind executeonly odef | 2133 | } bind executeonly odef |
2131 | 2134 | ||
2132 | /buildCIDType0 { % <CIDFontType0-font-resource> buildCIDType0 <font> | 2135 | /buildCIDType0 { % <CIDFontType0-font-resource> buildCIDType0 <font> |
diff --git a/Resource/Init/pdf_main.ps b/Resource/Init/pdf_main.ps index 00d7e3682..7690bae0f 100644 --- a/Resource/Init/pdf_main.ps +++ b/Resource/Init/pdf_main.ps | |||
@@ -2771,15 +2771,15 @@ currentdict /PDF2PS_matrix_key undef | |||
2771 | .setglobal | 2771 | .setglobal |
2772 | pdfformaterror | 2772 | pdfformaterror |
2773 | } executeonly ifelse | 2773 | } executeonly ifelse |
2774 | } | 2774 | } executeonly |
2775 | { | 2775 | { |
2776 | currentglobal //pdfdict gcheck .setglobal | 2776 | currentglobal //pdfdict gcheck .setglobal |
2777 | //pdfdict /.Qqwarning_issued //true .forceput | 2777 | //pdfdict /.Qqwarning_issued //true .forceput |
2778 | .setglobal | 2778 | .setglobal |
2779 | pdfformaterror | 2779 | pdfformaterror |
2780 | } executeonly ifelse | 2780 | } executeonly ifelse |
2781 | } if | 2781 | } executeonly if |
2782 | } if | 2782 | } executeonly if |
2783 | pop | 2783 | pop |
2784 | count PDFexecstackcount sub { pop } repeat | 2784 | count PDFexecstackcount sub { pop } repeat |
2785 | (after exec) VMDEBUG | 2785 | (after exec) VMDEBUG |
diff --git a/Resource/Init/pdf_ops.ps b/Resource/Init/pdf_ops.ps index a15c8c677..d594035c0 100644 --- a/Resource/Init/pdf_ops.ps +++ b/Resource/Init/pdf_ops.ps | |||
@@ -192,14 +192,14 @@ currentdict /gput_always_allow .undef | |||
192 | .setglobal | 192 | .setglobal |
193 | pdfformaterror | 193 | pdfformaterror |
194 | } executeonly ifelse | 194 | } executeonly ifelse |
195 | } | 195 | } executeonly |
196 | { | 196 | { |
197 | currentglobal //pdfdict gcheck .setglobal | 197 | currentglobal //pdfdict gcheck .setglobal |
198 | //pdfdict /.Qqwarning_issued //true .forceput | 198 | //pdfdict /.Qqwarning_issued //true .forceput |
199 | .setglobal | 199 | .setglobal |
200 | pdfformaterror | 200 | pdfformaterror |
201 | } executeonly ifelse | 201 | } executeonly ifelse |
202 | } if | 202 | } executeonly if |
203 | } bind executeonly odef | 203 | } bind executeonly odef |
204 | 204 | ||
205 | % Save PDF gstate | 205 | % Save PDF gstate |
@@ -446,11 +446,12 @@ currentdict /gput_always_allow .undef | |||
446 | dup type /booleantype eq { | 446 | dup type /booleantype eq { |
447 | .currentSMask type /dicttype eq { | 447 | .currentSMask type /dicttype eq { |
448 | .currentSMask /Processed 2 index .forceput | 448 | .currentSMask /Processed 2 index .forceput |
449 | } executeonly | ||
450 | { | ||
451 | .setSMask | ||
452 | }ifelse | ||
449 | } executeonly | 453 | } executeonly |
450 | { | 454 | { |
451 | .setSMask | ||
452 | }ifelse | ||
453 | }{ | ||
454 | .setSMask | 455 | .setSMask |
455 | }ifelse | 456 | }ifelse |
456 | 457 | ||