File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11% Barcode Writer in Pure PostScript
22% https://bwipp.terryburton.co.uk
33%
4- % Copyright (c) 2004-2024 Terry Burton
4+ % Copyright (c) 2004-2025 Terry Burton
55%
66% $Id$
77%
@@ -47,9 +47,10 @@ dup /dotcode dup /uk.co.terryburton.bwipp findresource put
4747begin
4848/gs1dotcode {
4949
50- 20 dict begin % Confine variables to local scope
50+ 20 dict begin
5151
5252 /ctx null def
53+
5354 /dontdraw false def
5455 /parse false def
5556 /dontlint false def
6364 /vals exch def
6465 /ais exch def
6566
67+ %
6668 % Create the dotcode data
69+ %
6770 /fnc1 -1 def
6871 /dmtx [ fnc1 ] def
6972 0 1 ais length 1 sub {
8386 } if
8487 } for
8588
89+ %
8690 % Compose input to dotcode
91+ %
8792 /barcode dmtx length 1 add 5 mul string def
8893 /i 0 def /j 0 def {
8994 i dmtx length eq {exit} if
98103 } loop
99104 /barcode barcode 0 j getinterval def
100105
106+ %
101107 % Get the result of encoding with dotcode
108+ %
102109 options (parse) undef
103110 options (dontdraw) true put
104111 options (parsefnc) true put
You can’t perform that action at this time.
0 commit comments