File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -332,7 +332,6 @@ begin
332332 /xnom -1.0 def
333333 /xmin -1.0 def
334334 /xmax -1.0 def
335- /modunit 2 def
336335
337336 /apply //processoptions exec /options exch def
338337 /global_encoder_defaults //render exec
@@ -344,6 +343,11 @@ begin
344343 /uk.co.terryburton.bwipp._dontdraw dup where {exch get} {pop false} ifelse or not
345344 def
346345
346+ /modunit 2 def
347+ /uk.co.terryburton.bwipp.global_ctx dup where {
348+ exch get /default_modunit 2 copy known {get /modunit exch def} {pop pop} ifelse
349+ } {pop} ifelse
350+
347351 %
348352 % Apply AST spec overrides and resolve physical specification
349353 %
@@ -1132,8 +1136,8 @@ begin
11321136 /pixs pixs
11331137 /pixx size
11341138 /pixy size
1135- /height size 2 mul 72 div
1136- /width size 2 mul 72 div
1139+ /height size modunit mul 72 div
1140+ /width size modunit mul 72 div
11371141 /strictspec strictspec
11381142 /loosespec loosespec
11391143 /xdim xdim
Original file line number Diff line number Diff line change @@ -396,7 +396,6 @@ begin
396396 /xnom -1.0 def
397397 /xmin -1.0 def
398398 /xmax -1.0 def
399- /modunit 2 def
400399
401400 /apply //processoptions exec /options exch def
402401 /global_encoder_defaults //render exec
@@ -412,6 +411,11 @@ begin
412411 /uk.co.terryburton.bwipp._dontdraw dup where {exch get} {pop false} ifelse or not
413412 def
414413
414+ /modunit 2 def
415+ /uk.co.terryburton.bwipp.global_ctx dup where {
416+ exch get /default_modunit 2 copy known {get /modunit exch def} {pop pop} ifelse
417+ } {pop} ifelse
418+
415419 %
416420 % Apply AST spec overrides and resolve physical specification
417421 %
@@ -1228,8 +1232,8 @@ begin
12281232 /pixs pixs
12291233 /pixx cols
12301234 /pixy rows
1231- /height rows 72 div 2 mul
1232- /width cols 72 div 2 mul
1235+ /height rows modunit mul 72 div
1236+ /width cols modunit mul 72 div
12331237 stype ttype or {
12341238 /borderleft 1.0
12351239 /borderright 1.0
Original file line number Diff line number Diff line change @@ -386,7 +386,6 @@ begin
386386 /xnom -1.0 def
387387 /xmin -1.0 def
388388 /xmax -1.0 def
389- /modunit 2 def
390389
391390 /apply //processoptions exec /options exch def
392391 /global_encoder_defaults //render exec
@@ -398,6 +397,11 @@ begin
398397 /uk.co.terryburton.bwipp._dontdraw dup where {exch get} {pop false} ifelse or not
399398 def
400399
400+ /modunit 2 def
401+ /uk.co.terryburton.bwipp.global_ctx dup where {
402+ exch get /default_modunit 2 copy known {get /modunit exch def} {pop pop} ifelse
403+ } {pop} ifelse
404+
401405 %
402406 % Apply AST spec overrides and resolve physical specification
403407 %
@@ -1202,8 +1206,8 @@ begin
12021206 /pixs pixs
12031207 /pixx cols
12041208 /pixy rows
1205- /height rows 2 mul 72 div
1206- /width cols 2 mul 72 div
1209+ /height rows modunit mul 72 div
1210+ /width cols modunit mul 72 div
12071211 /borderleft 1.0
12081212 /borderright 1.0
12091213 /bordertop 1.0
Original file line number Diff line number Diff line change @@ -268,7 +268,6 @@ begin
268268 /xnom -1.0 def
269269 /xmin -1.0 def
270270 /xmax -1.0 def
271- /modunit 2 def
272271
273272 /apply //processoptions exec /options exch def
274273 /global_encoder_defaults //render exec
@@ -284,6 +283,11 @@ begin
284283 /uk.co.terryburton.bwipp._dontdraw dup where {exch get} {pop false} ifelse or not
285284 def
286285
286+ /modunit 2 def
287+ /uk.co.terryburton.bwipp.global_ctx dup where {
288+ exch get /default_modunit 2 copy known {get /modunit exch def} {pop pop} ifelse
289+ } {pop} ifelse
290+
287291 %
288292 % Apply AST spec overrides and resolve physical specification
289293 %
@@ -1312,8 +1316,8 @@ begin
13121316 /pixs pixs
13131317 /pixx columns
13141318 /pixy rows
1315- /height rows 2 mul 72 div
1316- /width columns 2 mul 72 div
1319+ /height rows modunit mul 72 div
1320+ /width columns modunit mul 72 div
13171321 /borderleft 3.0
13181322 /borderright 3.0
13191323 /bordertop 3.0
Original file line number Diff line number Diff line change 6868 /xnom -1.0 def
6969 /xmin -1.0 def
7070 /xmax -1.0 def
71- /modunit 2 def
7271
7372 /apply //processoptions exec /options exch def
7473 /global_encoder_defaults //render exec
@@ -139,7 +138,6 @@ begin
139138 options (xnom) xnom put
140139 options (xmin) xmin put
141140 options (xmax) xmax put
142- options (modunit) modunit put
143141
144142 /uk.co.terryburton.bwipp._dontdraw true def
145143 barcode options //datamatrix exec /args exch def
Original file line number Diff line number Diff line change 6868 /xnom -1.0 def
6969 /xmin -1.0 def
7070 /xmax -1.0 def
71- /modunit 2 def
7271
7372 /apply //processoptions exec /options exch def
7473 /global_encoder_defaults //render exec
@@ -140,7 +139,6 @@ begin
140139 options (xnom) xnom put
141140 options (xmin) xmin put
142141 options (xmax) xmax put
143- options (modunit) modunit put
144142
145143 /uk.co.terryburton.bwipp._dontdraw true def
146144 barcode options //datamatrix exec /args exch def
Original file line number Diff line number Diff line change 6969 /xnom -1.0 def
7070 /xmin -1.0 def
7171 /xmax -1.0 def
72- /modunit 2 def
7372
7473 /apply //processoptions exec /options exch def
7574 /global_encoder_defaults //render exec
@@ -119,7 +118,6 @@ begin
119118 options (xnom) xnom put
120119 options (xmin) xmin put
121120 options (xmax) xmax put
122- options (modunit) modunit put
123121 /uk.co.terryburton.bwipp._dontdraw true def
124122 barcode options //datamatrix exec /args exch def
125123
Original file line number Diff line number Diff line change 6969 /xnom -1.0 def
7070 /xmin -1.0 def
7171 /xmax -1.0 def
72- /modunit 2 def
7372
7473 /apply //processoptions exec /options exch def
7574 /global_encoder_defaults //render exec
@@ -119,7 +118,6 @@ begin
119118 options (xnom) xnom put
120119 options (xmin) xmin put
121120 options (xmax) xmax put
122- options (modunit) modunit put
123121 /uk.co.terryburton.bwipp._dontdraw true def
124122 barcode options //qrcode exec /args exch def
125123
Original file line number Diff line number Diff line change 6767 /xnom -1.0 def
6868 /xmin -1.0 def
6969 /xmax -1.0 def
70- /modunit 2 def
7170
7271 /apply //processoptions exec /options exch def
7372 /global_encoder_defaults //render exec
@@ -138,7 +137,6 @@ begin
138137 options (xnom) xnom put
139138 options (xmin) xmin put
140139 options (xmax) xmax put
141- options (modunit) modunit put
142140
143141 /uk.co.terryburton.bwipp._dontdraw true def
144142 barcode options //dotcode exec /args exch def
Original file line number Diff line number Diff line change 6868 /xnom -1.0 def
6969 /xmin -1.0 def
7070 /xmax -1.0 def
71- /modunit 2 def
7271
7372 /apply //processoptions exec /options exch def
7473 /global_encoder_defaults //render exec
@@ -140,7 +139,6 @@ begin
140139 options (xnom) xnom put
141140 options (xmin) xmin put
142141 options (xmax) xmax put
143- options (modunit) modunit put
144142
145143 /uk.co.terryburton.bwipp._dontdraw true def
146144 barcode options //qrcode exec /args exch def
You can’t perform that action at this time.
0 commit comments