Subversion Repositories Applications.annuaire

Rev

Rev 296 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
296 aurelien 1
<html>
2
<head>
3
<title>Docs For Class TCPDFBarcode</title>
4
<link rel="stylesheet" type="text/css" href="../media/style.css">
5
</head>
6
<body>
7
 
8
<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%">
9
  <tr>
10
    <td class="header_top">com-tecnick-tcpdf</td>
11
  </tr>
12
  <tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt=""  /></td></tr>
13
  <tr>
14
    <td class="header_menu">
15
 
16
 
17
                              		  [ <a href="../classtrees_com-tecnick-tcpdf.html" class="menu">class tree: com-tecnick-tcpdf</a> ]
18
		  [ <a href="../elementindex_com-tecnick-tcpdf.html" class="menu">index: com-tecnick-tcpdf</a> ]
19
		  	    [ <a href="../elementindex.html" class="menu">all elements</a> ]
20
    </td>
21
  </tr>
22
  <tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt=""  /></td></tr>
23
</table>
24
 
25
<table width="100%" border="0" cellpadding="0" cellspacing="0">
26
  <tr valign="top">
27
    <td width="200" class="menu">
28
      <b>Packages:</b><br />
29
              <a href="../li_com-tecnick-tcpdf.html">com-tecnick-tcpdf</a><br />
30
            <br /><br />
31
                        <b>Files:</b><br />
32
      	  <div class="package">
33
			<a href="../com-tecnick-tcpdf/_2dbarcodes.php.html">		2dbarcodes.php
34
		</a><br>
35
			<a href="../com-tecnick-tcpdf/_barcodes.php.html">		barcodes.php
36
		</a><br>
37
			<a href="../com-tecnick-tcpdf/_htmlcolors.php.html">		htmlcolors.php
38
		</a><br>
39
			<a href="../com-tecnick-tcpdf/_pdf417.php.html">		pdf417.php
40
		</a><br>
41
			<a href="../com-tecnick-tcpdf/_qrcode.php.html">		qrcode.php
42
		</a><br>
43
			<a href="../com-tecnick-tcpdf/_tcpdf.php.html">		tcpdf.php
44
		</a><br>
45
			<a href="../com-tecnick-tcpdf/_config---tcpdf_config.php.html">		tcpdf_config.php
46
		</a><br>
47
			<a href="../com-tecnick-tcpdf/_unicode_data.php.html">		unicode_data.php
48
		</a><br>
49
	  </div><br />
50
 
51
 
52
            <b>Classes:</b><br />
53
        <div class="package">
54
		    		<a href="../com-tecnick-tcpdf/PDF417.html">PDF417</a><br />
55
	    		<a href="../com-tecnick-tcpdf/QRcode.html">QRcode</a><br />
56
	    		<a href="../com-tecnick-tcpdf/TCPDF.html">TCPDF</a><br />
57
	    		<a href="../com-tecnick-tcpdf/TCPDF2DBarcode.html">TCPDF2DBarcode</a><br />
58
	    		<a href="../com-tecnick-tcpdf/TCPDFBarcode.html">TCPDFBarcode</a><br />
59
	    		<a href="../com-tecnick-tcpdf/TCPDF_UNICODE_DATA.html">TCPDF_UNICODE_DATA</a><br />
60
	  </div>
61
                </td>
62
    <td>
63
      <table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top">
64
 
65
<h1>Class: TCPDFBarcode</h1>
66
Source Location: /barcodes.php<br /><br />
67
 
68
 
69
<table width="100%" border="0">
70
<tr><td valign="top">
71
 
72
<h3><a href="#class_details">Class Overview</a></h3>
73
<pre></pre><br />
74
<div class="description">PHP class to creates array representations for common 1D barcodes to be used with TCPDF (http://www.tcpdf.org).<br /></div><br /><br />
75
<h4>Author(s):</h4>
76
<ul>
77
          <li>Nicola Asuni</li>
78
                              </ul>
79
 
80
 
81
 
82
 
83
 
84
 
85
<h4>Version:</h4>
86
<ul>
87
  <li>1.0.011</li>
88
</ul>
89
 
90
 
91
</td>
92
 
93
<td valign="top">
94
<h3><a href="#class_vars">Variables</a></h3>
95
<ul>
96
    <li><a href="../com-tecnick-tcpdf/TCPDFBarcode.html#var$barcode_array">$barcode_array</a></li>
97
  </ul>
98
</td>
99
 
100
 
101
<td valign="top">
102
<h3><a href="#class_methods">Methods</a></h3>
103
<ul>
104
    <li><a href="../com-tecnick-tcpdf/TCPDFBarcode.html#method__construct">__construct</a></li>
105
    <li><a href="../com-tecnick-tcpdf/TCPDFBarcode.html#methodbarcode_c128">barcode_c128</a></li>
106
    <li><a href="../com-tecnick-tcpdf/TCPDFBarcode.html#methodbarcode_codabar">barcode_codabar</a></li>
107
    <li><a href="../com-tecnick-tcpdf/TCPDFBarcode.html#methodbarcode_code11">barcode_code11</a></li>
108
    <li><a href="../com-tecnick-tcpdf/TCPDFBarcode.html#methodbarcode_code39">barcode_code39</a></li>
109
    <li><a href="../com-tecnick-tcpdf/TCPDFBarcode.html#methodbarcode_code93">barcode_code93</a></li>
110
    <li><a href="../com-tecnick-tcpdf/TCPDFBarcode.html#methodbarcode_eanext">barcode_eanext</a></li>
111
    <li><a href="../com-tecnick-tcpdf/TCPDFBarcode.html#methodbarcode_eanupc">barcode_eanupc</a></li>
112
    <li><a href="../com-tecnick-tcpdf/TCPDFBarcode.html#methodbarcode_i25">barcode_i25</a></li>
113
    <li><a href="../com-tecnick-tcpdf/TCPDFBarcode.html#methodbarcode_imb">barcode_imb</a></li>
114
    <li><a href="../com-tecnick-tcpdf/TCPDFBarcode.html#methodbarcode_msi">barcode_msi</a></li>
115
    <li><a href="../com-tecnick-tcpdf/TCPDFBarcode.html#methodbarcode_pharmacode">barcode_pharmacode</a></li>
116
    <li><a href="../com-tecnick-tcpdf/TCPDFBarcode.html#methodbarcode_pharmacode2t">barcode_pharmacode2t</a></li>
117
    <li><a href="../com-tecnick-tcpdf/TCPDFBarcode.html#methodbarcode_postnet">barcode_postnet</a></li>
118
    <li><a href="../com-tecnick-tcpdf/TCPDFBarcode.html#methodbarcode_rms4cc">barcode_rms4cc</a></li>
119
    <li><a href="../com-tecnick-tcpdf/TCPDFBarcode.html#methodbarcode_s25">barcode_s25</a></li>
120
    <li><a href="../com-tecnick-tcpdf/TCPDFBarcode.html#methodbinseq_to_array">binseq_to_array</a></li>
121
    <li><a href="../com-tecnick-tcpdf/TCPDFBarcode.html#methodchecksum_code39">checksum_code39</a></li>
122
    <li><a href="../com-tecnick-tcpdf/TCPDFBarcode.html#methodchecksum_code93">checksum_code93</a></li>
123
    <li><a href="../com-tecnick-tcpdf/TCPDFBarcode.html#methodchecksum_s25">checksum_s25</a></li>
124
    <li><a href="../com-tecnick-tcpdf/TCPDFBarcode.html#methoddec_to_hex">dec_to_hex</a></li>
125
    <li><a href="../com-tecnick-tcpdf/TCPDFBarcode.html#methodencode_code39_ext">encode_code39_ext</a></li>
126
    <li><a href="../com-tecnick-tcpdf/TCPDFBarcode.html#methodgetBarcodeArray">getBarcodeArray</a></li>
127
    <li><a href="../com-tecnick-tcpdf/TCPDFBarcode.html#methodhex_to_dec">hex_to_dec</a></li>
128
    <li><a href="../com-tecnick-tcpdf/TCPDFBarcode.html#methodimb_crc11fcs">imb_crc11fcs</a></li>
129
    <li><a href="../com-tecnick-tcpdf/TCPDFBarcode.html#methodimb_reverse_us">imb_reverse_us</a></li>
130
    <li><a href="../com-tecnick-tcpdf/TCPDFBarcode.html#methodimb_tables">imb_tables</a></li>
131
    <li><a href="../com-tecnick-tcpdf/TCPDFBarcode.html#methodsetBarcode">setBarcode</a></li>
132
  </ul>
133
</td>
134
 
135
</tr></table>
136
<hr />
137
 
138
<table width="100%" border="0"><tr>
139
 
140
 
141
 
142
 
143
 
144
 
145
</tr></table>
146
<hr />
147
 
148
<a name="class_details"></a>
149
<h3>Class Details</h3>
150
<div class="tags">
151
[line 55]<br />
152
PHP class to creates array representations for common 1D barcodes to be used with TCPDF (http://www.tcpdf.org).<br /><br /><br /><br /><br />
153
<h4>Tags:</h4>
154
<div class="tags">
155
<table border="0" cellspacing="0" cellpadding="0">
156
  <tr>
157
    <td><b>author:</b>&nbsp;&nbsp;</td><td>Nicola Asuni</td>
158
  </tr>
159
  <tr>
160
    <td><b>version:</b>&nbsp;&nbsp;</td><td>1.0.011</td>
161
  </tr>
162
  <tr>
163
    <td><b>link:</b>&nbsp;&nbsp;</td><td><a href="http://www.tcpdf.org">http://www.tcpdf.org</a></td>
164
  </tr>
165
  <tr>
166
    <td><b>name:</b>&nbsp;&nbsp;</td><td>TCPDFBarcode</td>
167
  </tr>
168
  <tr>
169
    <td><b>license:</b>&nbsp;&nbsp;</td><td><a href="http://www.gnu.org/copyleft/lesser.html">LGPL</a></td>
170
  </tr>
171
</table>
172
</div>
173
</div><br /><br />
174
<div class="top">[ <a href="#top">Top</a> ]</div><br />
175
 
176
<hr />
177
<a name="class_vars"></a>
178
<h3>Class Variables</h3>
179
<div class="tags">
180
	<a name="var$barcode_array"></a>
181
	<p></p>
182
	<h4>$barcode_array = <span class="value"></span></h4>
183
	<p>[line 61]</p>
184
  <br /><br />
185
<h4>Tags:</h4>
186
<div class="tags">
187
<table border="0" cellspacing="0" cellpadding="0">
188
  <tr>
189
    <td><b>var:</b>&nbsp;&nbsp;</td><td>representation of barcode.</td>
190
  </tr>
191
  <tr>
192
    <td><b>access:</b>&nbsp;&nbsp;</td><td>protected</td>
193
  </tr>
194
</table>
195
</div>
196
 
197
  <br />
198
	<div class="tags">
199
  <table border="0" cellspacing="0" cellpadding="0">
200
    <tr>
201
      <td><b>Type:</b>&nbsp;&nbsp;</td>
202
      <td>array</td>
203
    </tr>
204
      </table>
205
	</div><br /><br />
206
	<div class="top">[ <a href="#top">Top</a> ]</div><br />
207
</div><br />
208
 
209
<hr />
210
<a name="class_methods"></a>
211
<h3>Class Methods</h3>
212
<div class="tags">
213
 
214
  <hr />
215
	<a name="method__construct"></a>
216
	<h3>constructor __construct <span class="smalllinenumber">[line 77]</span></h3>
217
	<div class="function">
218
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
219
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
220
		<code>TCPDFBarcode __construct(
221
string
222
$code, string
223
$type)</code>
224
    </td></tr></table>
225
    </td></tr></table><br />
226
 
227
		This is the class constructor.<br /><br /><p>Return an array representations for common 1D barcodes:<ul><li>$arrcode['code'] code to be printed on text label</li><li>$arrcode['maxh'] max bar height</li><li>$arrcode['maxw'] max bar width</li><li>$arrcode['bcode'][$k] single bar or space in $k position</li><li>$arrcode['bcode'][$k]['t'] bar type: true = bar, false = space.</li><li>$arrcode['bcode'][$k]['w'] bar width in units.</li><li>$arrcode['bcode'][$k]['h'] bar height in units.</li><li>$arrcode['bcode'][$k]['p'] bar top position (0 = top, 1 = middle)</li></ul></p><br /><br /><br />
228
<h4>Tags:</h4>
229
<div class="tags">
230
<table border="0" cellspacing="0" cellpadding="0">
231
  <tr>
232
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
233
  </tr>
234
</table>
235
</div>
236
<br /><br />
237
 
238
 
239
        <h4>Parameters:</h4>
240
    <div class="tags">
241
    <table border="0" cellspacing="0" cellpadding="0">
242
          <tr>
243
        <td class="type">string&nbsp;&nbsp;</td>
244
        <td><b>$code</b>&nbsp;&nbsp;</td>
245
        <td>code to print</td>
246
      </tr>
247
          <tr>
248
        <td class="type">string&nbsp;&nbsp;</td>
249
        <td><b>$type</b>&nbsp;&nbsp;</td>
250
        <td>type of barcode: <ul><li>C39 : CODE 39 - ANSI MH10.8M-1983 - USD-3 - 3 of 9.</li><li>C39+ : CODE 39 with checksum</li><li>C39E : CODE 39 EXTENDED</li><li>C39E+ : CODE 39 EXTENDED + CHECKSUM</li><li>C93 : CODE 93 - USS-93</li><li>S25 : Standard 2 of 5</li><li>S25+ : Standard 2 of 5 + CHECKSUM</li><li>I25 : Interleaved 2 of 5</li><li>I25+ : Interleaved 2 of 5 + CHECKSUM</li><li>C128A : CODE 128 A</li><li>C128B : CODE 128 B</li><li>C128C : CODE 128 C</li><li>EAN2 : 2-Digits UPC-Based Extention</li><li>EAN5 : 5-Digits UPC-Based Extention</li><li>EAN8 : EAN 8</li><li>EAN13 : EAN 13</li><li>UPCA : UPC-A</li><li>UPCE : UPC-E</li><li>MSI : MSI (Variation of Plessey code)</li><li>MSI+ : MSI + CHECKSUM (modulo 11)</li><li>POSTNET : POSTNET</li><li>PLANET : PLANET</li><li>RMS4CC : RMS4CC (Royal Mail 4-state Customer Code) - CBC (Customer Bar Code)</li><li>KIX : KIX (Klant index - Customer index)</li><li>IMB: Intelligent Mail Barcode - Onecode - USPS-B-3200</li><li>CODABAR : CODABAR</li><li>CODE11 : CODE 11</li><li>PHARMA : PHARMACODE</li><li>PHARMA2T : PHARMACODE TWO-TRACKS</li></ul></td>
251
      </tr>
252
        </table>
253
    </div><br />
254
        <div class="top">[ <a href="#top">Top</a> ]</div>
255
  </div>
256
  <hr />
257
	<a name="methodbarcode_c128"></a>
258
	<h3>method barcode_c128 <span class="smalllinenumber">[line 792]</span></h3>
259
	<div class="function">
260
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
261
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
262
		<code>array barcode_c128(
263
string
264
$code, [string
265
$type = 'B'])</code>
266
    </td></tr></table>
267
    </td></tr></table><br />
268
 
269
		C128 barcodes.<br /><br /><p>Very capable code, excellent density, high reliability; in very wide use world-wide</p><br /><br /><br />
270
<h4>Tags:</h4>
271
<div class="tags">
272
<table border="0" cellspacing="0" cellpadding="0">
273
  <tr>
274
    <td><b>return:</b>&nbsp;&nbsp;</td><td>barcode representation.</td>
275
  </tr>
276
  <tr>
277
    <td><b>access:</b>&nbsp;&nbsp;</td><td>protected</td>
278
  </tr>
279
</table>
280
</div>
281
<br /><br />
282
 
283
 
284
        <h4>Parameters:</h4>
285
    <div class="tags">
286
    <table border="0" cellspacing="0" cellpadding="0">
287
          <tr>
288
        <td class="type">string&nbsp;&nbsp;</td>
289
        <td><b>$code</b>&nbsp;&nbsp;</td>
290
        <td>code to represent.</td>
291
      </tr>
292
          <tr>
293
        <td class="type">string&nbsp;&nbsp;</td>
294
        <td><b>$type</b>&nbsp;&nbsp;</td>
295
        <td>barcode type: A, B or C</td>
296
      </tr>
297
        </table>
298
    </div><br />
299
        <div class="top">[ <a href="#top">Top</a> ]</div>
300
  </div>
301
  <hr />
302
	<a name="methodbarcode_codabar"></a>
303
	<h3>method barcode_codabar <span class="smalllinenumber">[line 1480]</span></h3>
304
	<div class="function">
305
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
306
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
307
		<code>array barcode_codabar(
308
string
309
$code)</code>
310
    </td></tr></table>
311
    </td></tr></table><br />
312
 
313
		CODABAR barcodes.<br /><br /><p>Older code often used in library systems, sometimes in blood banks</p><br /><br /><br />
314
<h4>Tags:</h4>
315
<div class="tags">
316
<table border="0" cellspacing="0" cellpadding="0">
317
  <tr>
318
    <td><b>return:</b>&nbsp;&nbsp;</td><td>barcode representation.</td>
319
  </tr>
320
  <tr>
321
    <td><b>access:</b>&nbsp;&nbsp;</td><td>protected</td>
322
  </tr>
323
</table>
324
</div>
325
<br /><br />
326
 
327
 
328
        <h4>Parameters:</h4>
329
    <div class="tags">
330
    <table border="0" cellspacing="0" cellpadding="0">
331
          <tr>
332
        <td class="type">string&nbsp;&nbsp;</td>
333
        <td><b>$code</b>&nbsp;&nbsp;</td>
334
        <td>code to represent.</td>
335
      </tr>
336
        </table>
337
    </div><br />
338
        <div class="top">[ <a href="#top">Top</a> ]</div>
339
  </div>
340
  <hr />
341
	<a name="methodbarcode_code11"></a>
342
	<h3>method barcode_code11 <span class="smalllinenumber">[line 1536]</span></h3>
343
	<div class="function">
344
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
345
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
346
		<code>array barcode_code11(
347
string
348
$code)</code>
349
    </td></tr></table>
350
    </td></tr></table><br />
351
 
352
		CODE11 barcodes.<br /><br /><p>Used primarily for labeling telecommunications equipment</p><br /><br /><br />
353
<h4>Tags:</h4>
354
<div class="tags">
355
<table border="0" cellspacing="0" cellpadding="0">
356
  <tr>
357
    <td><b>return:</b>&nbsp;&nbsp;</td><td>barcode representation.</td>
358
  </tr>
359
  <tr>
360
    <td><b>access:</b>&nbsp;&nbsp;</td><td>protected</td>
361
  </tr>
362
</table>
363
</div>
364
<br /><br />
365
 
366
 
367
        <h4>Parameters:</h4>
368
    <div class="tags">
369
    <table border="0" cellspacing="0" cellpadding="0">
370
          <tr>
371
        <td class="type">string&nbsp;&nbsp;</td>
372
        <td><b>$code</b>&nbsp;&nbsp;</td>
373
        <td>code to represent.</td>
374
      </tr>
375
        </table>
376
    </div><br />
377
        <div class="top">[ <a href="#top">Top</a> ]</div>
378
  </div>
379
  <hr />
380
	<a name="methodbarcode_code39"></a>
381
	<h3>method barcode_code39 <span class="smalllinenumber">[line 230]</span></h3>
382
	<div class="function">
383
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
384
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
385
		<code>array barcode_code39(
386
string
387
$code, [
388
$extended = false], [boolean
389
$checksum = false])</code>
390
    </td></tr></table>
391
    </td></tr></table><br />
392
 
393
		CODE 39 - ANSI MH10.8M-1983 - USD-3 - 3 of 9.<br /><br /><p>General-purpose code in very wide use world-wide</p><br /><br /><br />
394
<h4>Tags:</h4>
395
<div class="tags">
396
<table border="0" cellspacing="0" cellpadding="0">
397
  <tr>
398
    <td><b>return:</b>&nbsp;&nbsp;</td><td>barcode representation.</td>
399
  </tr>
400
  <tr>
401
    <td><b>access:</b>&nbsp;&nbsp;</td><td>protected</td>
402
  </tr>
403
</table>
404
</div>
405
<br /><br />
406
 
407
 
408
        <h4>Parameters:</h4>
409
    <div class="tags">
410
    <table border="0" cellspacing="0" cellpadding="0">
411
          <tr>
412
        <td class="type">string&nbsp;&nbsp;</td>
413
        <td><b>$code</b>&nbsp;&nbsp;</td>
414
        <td>code to represent.</td>
415
      </tr>
416
          <tr>
417
        <td class="type">boolean&nbsp;&nbsp;</td>
418
        <td><b>$checksum</b>&nbsp;&nbsp;</td>
419
        <td>if true add a checksum to the code</td>
420
      </tr>
421
          <tr>
422
        <td class="type">&nbsp;&nbsp;</td>
423
        <td><b>$extended</b>&nbsp;&nbsp;</td>
424
        <td></td>
425
      </tr>
426
        </table>
427
    </div><br />
428
        <div class="top">[ <a href="#top">Top</a> ]</div>
429
  </div>
430
  <hr />
431
	<a name="methodbarcode_code93"></a>
432
	<h3>method barcode_code93 <span class="smalllinenumber">[line 399]</span></h3>
433
	<div class="function">
434
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
435
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
436
		<code>array barcode_code93(
437
string
438
$code, boolean
439
$checksum)</code>
440
    </td></tr></table>
441
    </td></tr></table><br />
442
 
443
		CODE 93 - USS-93<br /><br /><p>Compact code similar to Code 39</p><br /><br /><br />
444
<h4>Tags:</h4>
445
<div class="tags">
446
<table border="0" cellspacing="0" cellpadding="0">
447
  <tr>
448
    <td><b>return:</b>&nbsp;&nbsp;</td><td>barcode representation.</td>
449
  </tr>
450
  <tr>
451
    <td><b>access:</b>&nbsp;&nbsp;</td><td>protected</td>
452
  </tr>
453
</table>
454
</div>
455
<br /><br />
456
 
457
 
458
        <h4>Parameters:</h4>
459
    <div class="tags">
460
    <table border="0" cellspacing="0" cellpadding="0">
461
          <tr>
462
        <td class="type">string&nbsp;&nbsp;</td>
463
        <td><b>$code</b>&nbsp;&nbsp;</td>
464
        <td>code to represent.</td>
465
      </tr>
466
          <tr>
467
        <td class="type">boolean&nbsp;&nbsp;</td>
468
        <td><b>$checksum</b>&nbsp;&nbsp;</td>
469
        <td>if true add a checksum to the code</td>
470
      </tr>
471
        </table>
472
    </div><br />
473
        <div class="top">[ <a href="#top">Top</a> ]</div>
474
  </div>
475
  <hr />
476
	<a name="methodbarcode_eanext"></a>
477
	<h3>method barcode_eanext <span class="smalllinenumber">[line 1181]</span></h3>
478
	<div class="function">
479
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
480
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
481
		<code>array barcode_eanext(
482
string
483
$code, [string
484
$len = 5])</code>
485
    </td></tr></table>
486
    </td></tr></table><br />
487
 
488
		UPC-Based Extentions<br /><br /><p>2-Digit Ext.: Used to indicate magazines and newspaper issue numbers  5-Digit Ext.: Used to mark suggested retail price of books</p><br /><br /><br />
489
<h4>Tags:</h4>
490
<div class="tags">
491
<table border="0" cellspacing="0" cellpadding="0">
492
  <tr>
493
    <td><b>return:</b>&nbsp;&nbsp;</td><td>barcode representation.</td>
494
  </tr>
495
  <tr>
496
    <td><b>access:</b>&nbsp;&nbsp;</td><td>protected</td>
497
  </tr>
498
</table>
499
</div>
500
<br /><br />
501
 
502
 
503
        <h4>Parameters:</h4>
504
    <div class="tags">
505
    <table border="0" cellspacing="0" cellpadding="0">
506
          <tr>
507
        <td class="type">string&nbsp;&nbsp;</td>
508
        <td><b>$code</b>&nbsp;&nbsp;</td>
509
        <td>code to represent.</td>
510
      </tr>
511
          <tr>
512
        <td class="type">string&nbsp;&nbsp;</td>
513
        <td><b>$len</b>&nbsp;&nbsp;</td>
514
        <td>barcode type: 2 = 2-Digit, 5 = 5-Digit</td>
515
      </tr>
516
        </table>
517
    </div><br />
518
        <div class="top">[ <a href="#top">Top</a> ]</div>
519
  </div>
520
  <hr />
521
	<a name="methodbarcode_eanupc"></a>
522
	<h3>method barcode_eanupc <span class="smalllinenumber">[line 988]</span></h3>
523
	<div class="function">
524
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
525
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
526
		<code>array barcode_eanupc(
527
string
528
$code, [string
529
$len = 13])</code>
530
    </td></tr></table>
531
    </td></tr></table><br />
532
 
533
		EAN13 and UPC-A barcodes.<br /><br /><p>EAN13: European Article Numbering international retail product code  UPC-A: Universal product code seen on almost all retail products in the USA and Canada  UPC-E: Short version of UPC symbol</p><br /><br /><br />
534
<h4>Tags:</h4>
535
<div class="tags">
536
<table border="0" cellspacing="0" cellpadding="0">
537
  <tr>
538
    <td><b>return:</b>&nbsp;&nbsp;</td><td>barcode representation.</td>
539
  </tr>
540
  <tr>
541
    <td><b>access:</b>&nbsp;&nbsp;</td><td>protected</td>
542
  </tr>
543
</table>
544
</div>
545
<br /><br />
546
 
547
 
548
        <h4>Parameters:</h4>
549
    <div class="tags">
550
    <table border="0" cellspacing="0" cellpadding="0">
551
          <tr>
552
        <td class="type">string&nbsp;&nbsp;</td>
553
        <td><b>$code</b>&nbsp;&nbsp;</td>
554
        <td>code to represent.</td>
555
      </tr>
556
          <tr>
557
        <td class="type">string&nbsp;&nbsp;</td>
558
        <td><b>$len</b>&nbsp;&nbsp;</td>
559
        <td>barcode type: 6 = UPC-E, 8 = EAN8, 13 = EAN13, 12 = UPC-A</td>
560
      </tr>
561
        </table>
562
    </div><br />
563
        <div class="top">[ <a href="#top">Top</a> ]</div>
564
  </div>
565
  <hr />
566
	<a name="methodbarcode_i25"></a>
567
	<h3>method barcode_i25 <span class="smalllinenumber">[line 728]</span></h3>
568
	<div class="function">
569
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
570
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
571
		<code>array barcode_i25(
572
string
573
$code, [boolean
574
$checksum = false])</code>
575
    </td></tr></table>
576
    </td></tr></table><br />
577
 
578
		Interleaved 2 of 5 barcodes.<br /><br /><p>Compact numeric code, widely used in industry, air cargo  Contains digits (0 to 9) and encodes the data in the width of both bars and spaces.</p><br /><br /><br />
579
<h4>Tags:</h4>
580
<div class="tags">
581
<table border="0" cellspacing="0" cellpadding="0">
582
  <tr>
583
    <td><b>return:</b>&nbsp;&nbsp;</td><td>barcode representation.</td>
584
  </tr>
585
  <tr>
586
    <td><b>access:</b>&nbsp;&nbsp;</td><td>protected</td>
587
  </tr>
588
</table>
589
</div>
590
<br /><br />
591
 
592
 
593
        <h4>Parameters:</h4>
594
    <div class="tags">
595
    <table border="0" cellspacing="0" cellpadding="0">
596
          <tr>
597
        <td class="type">string&nbsp;&nbsp;</td>
598
        <td><b>$code</b>&nbsp;&nbsp;</td>
599
        <td>code to represent.</td>
600
      </tr>
601
          <tr>
602
        <td class="type">boolean&nbsp;&nbsp;</td>
603
        <td><b>$checksum</b>&nbsp;&nbsp;</td>
604
        <td>if true add a checksum to the code</td>
605
      </tr>
606
        </table>
607
    </div><br />
608
        <div class="top">[ <a href="#top">Top</a> ]</div>
609
  </div>
610
  <hr />
611
	<a name="methodbarcode_imb"></a>
612
	<h3>method barcode_imb <span class="smalllinenumber">[line 1717]</span></h3>
613
	<div class="function">
614
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
615
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
616
		<code>array barcode_imb(
617
string
618
$code)</code>
619
    </td></tr></table>
620
    </td></tr></table><br />
621
 
622
		IMB - Intelligent Mail Barcode - Onecode - USPS-B-3200  (requires PHP bcmath extension)  Intelligent Mail barcode is a 65-bar code for use on mail in the United States.<br /><br /><p>The fields are described as follows:<ul><li>The Barcode Identifier shall be assigned by USPS to encode the presort identification that is currently printed in human readable form on the optional endorsement line (OEL) as well as for future USPS use. This shall be two digits, with the second digit in the range of 0–4. The allowable encoding ranges shall be 00–04, 10–14, 20–24, 30–34, 40–44, 50–54, 60–64, 70–74, 80–84, and 90–94.</li><li>The Service Type Identifier shall be assigned by USPS for any combination of services requested on the mailpiece. The allowable encoding range shall be 000http://it2.php.net/manual/en/function.dechex.php–999. Each 3-digit value shall correspond to a particular mail class with a particular combination of service(s). Each service program, such as OneCode Confirm and OneCode ACS, shall provide the list of Service Type Identifier values.</li><li>The Mailer or Customer Identifier shall be assigned by USPS as a unique, 6 or 9 digit number that identifies a business entity. The allowable encoding range for the 6 digit Mailer ID shall be 000000- 899999, while the allowable encoding range for the 9 digit Mailer ID shall be 900000000-999999999.</li><li>The Serial or Sequence Number shall be assigned by the mailer for uniquely identifying and tracking mailpieces. The allowable encoding range shall be 000000000–999999999 when used with a 6 digit Mailer ID and 000000-999999 when used with a 9 digit Mailer ID. e. The Delivery Point ZIP Code shall be assigned by the mailer for routing the mailpiece. This shall replace POSTNET for routing the mailpiece to its final delivery point. The length may be 0, 5, 9, or 11 digits. The allowable encoding ranges shall be no ZIP Code, 00000–99999,  000000000–999999999, and 00000000000–99999999999.</li></ul></p><br /><br /><br />
623
<h4>Tags:</h4>
624
<div class="tags">
625
<table border="0" cellspacing="0" cellpadding="0">
626
  <tr>
627
    <td><b>return:</b>&nbsp;&nbsp;</td><td>barcode representation.</td>
628
  </tr>
629
  <tr>
630
    <td><b>access:</b>&nbsp;&nbsp;</td><td>protected</td>
631
  </tr>
632
</table>
633
</div>
634
<br /><br />
635
 
636
 
637
        <h4>Parameters:</h4>
638
    <div class="tags">
639
    <table border="0" cellspacing="0" cellpadding="0">
640
          <tr>
641
        <td class="type">string&nbsp;&nbsp;</td>
642
        <td><b>$code</b>&nbsp;&nbsp;</td>
643
        <td>code to print, separate the ZIP (routing code) from the rest using a minus char '-' (BarcodeID_ServiceTypeID_MailerID_SerialNumber-RoutingCode)</td>
644
      </tr>
645
        </table>
646
    </div><br />
647
        <div class="top">[ <a href="#top">Top</a> ]</div>
648
  </div>
649
  <hr />
650
	<a name="methodbarcode_msi"></a>
651
	<h3>method barcode_msi <span class="smalllinenumber">[line 598]</span></h3>
652
	<div class="function">
653
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
654
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
655
		<code>array barcode_msi(
656
string
657
$code, [boolean
658
$checksum = false])</code>
659
    </td></tr></table>
660
    </td></tr></table><br />
661
 
662
		MSI.<br /><br /><p>Variation of Plessey code, with similar applications  Contains digits (0 to 9) and encodes the data only in the width of bars.</p><br /><br /><br />
663
<h4>Tags:</h4>
664
<div class="tags">
665
<table border="0" cellspacing="0" cellpadding="0">
666
  <tr>
667
    <td><b>return:</b>&nbsp;&nbsp;</td><td>barcode representation.</td>
668
  </tr>
669
  <tr>
670
    <td><b>access:</b>&nbsp;&nbsp;</td><td>protected</td>
671
  </tr>
672
</table>
673
</div>
674
<br /><br />
675
 
676
 
677
        <h4>Parameters:</h4>
678
    <div class="tags">
679
    <table border="0" cellspacing="0" cellpadding="0">
680
          <tr>
681
        <td class="type">string&nbsp;&nbsp;</td>
682
        <td><b>$code</b>&nbsp;&nbsp;</td>
683
        <td>code to represent.</td>
684
      </tr>
685
          <tr>
686
        <td class="type">boolean&nbsp;&nbsp;</td>
687
        <td><b>$checksum</b>&nbsp;&nbsp;</td>
688
        <td>if true add a checksum to the code (modulo 11)</td>
689
      </tr>
690
        </table>
691
    </div><br />
692
        <div class="top">[ <a href="#top">Top</a> ]</div>
693
  </div>
694
  <hr />
695
	<a name="methodbarcode_pharmacode"></a>
696
	<h3>method barcode_pharmacode <span class="smalllinenumber">[line 1628]</span></h3>
697
	<div class="function">
698
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
699
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
700
		<code>array barcode_pharmacode(
701
string
702
$code)</code>
703
    </td></tr></table>
704
    </td></tr></table><br />
705
 
706
		Pharmacode<br /><br /><p>Contains digits (0 to 9)</p><br /><br /><br />
707
<h4>Tags:</h4>
708
<div class="tags">
709
<table border="0" cellspacing="0" cellpadding="0">
710
  <tr>
711
    <td><b>return:</b>&nbsp;&nbsp;</td><td>barcode representation.</td>
712
  </tr>
713
  <tr>
714
    <td><b>access:</b>&nbsp;&nbsp;</td><td>protected</td>
715
  </tr>
716
</table>
717
</div>
718
<br /><br />
719
 
720
 
721
        <h4>Parameters:</h4>
722
    <div class="tags">
723
    <table border="0" cellspacing="0" cellpadding="0">
724
          <tr>
725
        <td class="type">string&nbsp;&nbsp;</td>
726
        <td><b>$code</b>&nbsp;&nbsp;</td>
727
        <td>code to represent.</td>
728
      </tr>
729
        </table>
730
    </div><br />
731
        <div class="top">[ <a href="#top">Top</a> ]</div>
732
  </div>
733
  <hr />
734
	<a name="methodbarcode_pharmacode2t"></a>
735
	<h3>method barcode_pharmacode2t <span class="smalllinenumber">[line 1654]</span></h3>
736
	<div class="function">
737
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
738
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
739
		<code>array barcode_pharmacode2t(
740
string
741
$code)</code>
742
    </td></tr></table>
743
    </td></tr></table><br />
744
 
745
		Pharmacode two-track<br /><br /><p>Contains digits (0 to 9)</p><br /><br /><br />
746
<h4>Tags:</h4>
747
<div class="tags">
748
<table border="0" cellspacing="0" cellpadding="0">
749
  <tr>
750
    <td><b>return:</b>&nbsp;&nbsp;</td><td>barcode representation.</td>
751
  </tr>
752
  <tr>
753
    <td><b>access:</b>&nbsp;&nbsp;</td><td>protected</td>
754
  </tr>
755
</table>
756
</div>
757
<br /><br />
758
 
759
 
760
        <h4>Parameters:</h4>
761
    <div class="tags">
762
    <table border="0" cellspacing="0" cellpadding="0">
763
          <tr>
764
        <td class="type">string&nbsp;&nbsp;</td>
765
        <td><b>$code</b>&nbsp;&nbsp;</td>
766
        <td>code to represent.</td>
767
      </tr>
768
        </table>
769
    </div><br />
770
        <div class="top">[ <a href="#top">Top</a> ]</div>
771
  </div>
772
  <hr />
773
	<a name="methodbarcode_postnet"></a>
774
	<h3>method barcode_postnet <span class="smalllinenumber">[line 1256]</span></h3>
775
	<div class="function">
776
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
777
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
778
		<code>array barcode_postnet(
779
string
780
$code, [boolean
781
$planet = false])</code>
782
    </td></tr></table>
783
    </td></tr></table><br />
784
 
785
		POSTNET and PLANET barcodes.<br /><br /><p>Used by U.S. Postal Service for automated mail sorting</p><br /><br /><br />
786
<h4>Tags:</h4>
787
<div class="tags">
788
<table border="0" cellspacing="0" cellpadding="0">
789
  <tr>
790
    <td><b>return:</b>&nbsp;&nbsp;</td><td>barcode representation.</td>
791
  </tr>
792
  <tr>
793
    <td><b>access:</b>&nbsp;&nbsp;</td><td>protected</td>
794
  </tr>
795
</table>
796
</div>
797
<br /><br />
798
 
799
 
800
        <h4>Parameters:</h4>
801
    <div class="tags">
802
    <table border="0" cellspacing="0" cellpadding="0">
803
          <tr>
804
        <td class="type">string&nbsp;&nbsp;</td>
805
        <td><b>$code</b>&nbsp;&nbsp;</td>
806
        <td>zip code to represent. Must be a string containing a zip code of the form DDDDD or DDDDD-DDDD.</td>
807
      </tr>
808
          <tr>
809
        <td class="type">boolean&nbsp;&nbsp;</td>
810
        <td><b>$planet</b>&nbsp;&nbsp;</td>
811
        <td>if true print the PLANET barcode, otherwise print POSTNET</td>
812
      </tr>
813
        </table>
814
    </div><br />
815
        <div class="top">[ <a href="#top">Top</a> ]</div>
816
  </div>
817
  <hr />
818
	<a name="methodbarcode_rms4cc"></a>
819
	<h3>method barcode_rms4cc <span class="smalllinenumber">[line 1329]</span></h3>
820
	<div class="function">
821
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
822
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
823
		<code>array barcode_rms4cc(
824
string
825
$code, [boolean
826
$kix = false])</code>
827
    </td></tr></table>
828
    </td></tr></table><br />
829
 
830
		RMS4CC - CBC - KIX  RMS4CC (Royal Mail 4-state Customer Code) - CBC (Customer Bar Code) - KIX (Klant index - Customer index)  RM4SCC is the name of the barcode symbology used by the Royal Mail for its Cleanmail service.<br /><br /><br /><br />
831
<h4>Tags:</h4>
832
<div class="tags">
833
<table border="0" cellspacing="0" cellpadding="0">
834
  <tr>
835
    <td><b>return:</b>&nbsp;&nbsp;</td><td>barcode representation.</td>
836
  </tr>
837
  <tr>
838
    <td><b>access:</b>&nbsp;&nbsp;</td><td>protected</td>
839
  </tr>
840
</table>
841
</div>
842
<br /><br />
843
 
844
 
845
        <h4>Parameters:</h4>
846
    <div class="tags">
847
    <table border="0" cellspacing="0" cellpadding="0">
848
          <tr>
849
        <td class="type">string&nbsp;&nbsp;</td>
850
        <td><b>$code</b>&nbsp;&nbsp;</td>
851
        <td>code to print</td>
852
      </tr>
853
          <tr>
854
        <td class="type">boolean&nbsp;&nbsp;</td>
855
        <td><b>$kix</b>&nbsp;&nbsp;</td>
856
        <td>if true prints the KIX variation (doesn't use the start and end symbols, and the checksum) - in this case the house number must be sufficed with an X and placed at the end of the code.</td>
857
      </tr>
858
        </table>
859
    </div><br />
860
        <div class="top">[ <a href="#top">Top</a> ]</div>
861
  </div>
862
  <hr />
863
	<a name="methodbarcode_s25"></a>
864
	<h3>method barcode_s25 <span class="smalllinenumber">[line 657]</span></h3>
865
	<div class="function">
866
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
867
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
868
		<code>array barcode_s25(
869
string
870
$code, [boolean
871
$checksum = false])</code>
872
    </td></tr></table>
873
    </td></tr></table><br />
874
 
875
		Standard 2 of 5 barcodes.<br /><br /><p>Used in airline ticket marking, photofinishing  Contains digits (0 to 9) and encodes the data only in the width of bars.</p><br /><br /><br />
876
<h4>Tags:</h4>
877
<div class="tags">
878
<table border="0" cellspacing="0" cellpadding="0">
879
  <tr>
880
    <td><b>return:</b>&nbsp;&nbsp;</td><td>barcode representation.</td>
881
  </tr>
882
  <tr>
883
    <td><b>access:</b>&nbsp;&nbsp;</td><td>protected</td>
884
  </tr>
885
</table>
886
</div>
887
<br /><br />
888
 
889
 
890
        <h4>Parameters:</h4>
891
    <div class="tags">
892
    <table border="0" cellspacing="0" cellpadding="0">
893
          <tr>
894
        <td class="type">string&nbsp;&nbsp;</td>
895
        <td><b>$code</b>&nbsp;&nbsp;</td>
896
        <td>code to represent.</td>
897
      </tr>
898
          <tr>
899
        <td class="type">boolean&nbsp;&nbsp;</td>
900
        <td><b>$checksum</b>&nbsp;&nbsp;</td>
901
        <td>if true add a checksum to the code</td>
902
      </tr>
903
        </table>
904
    </div><br />
905
        <div class="top">[ <a href="#top">Top</a> ]</div>
906
  </div>
907
  <hr />
908
	<a name="methodbinseq_to_array"></a>
909
	<h3>method binseq_to_array <span class="smalllinenumber">[line 698]</span></h3>
910
	<div class="function">
911
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
912
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
913
		<code>array binseq_to_array(
914
string
915
$seq,
916
$bararray)</code>
917
    </td></tr></table>
918
    </td></tr></table><br />
919
 
920
		Convert binary barcode sequence to TCPDF barcode array<br /><br /><br /><br />
921
<h4>Tags:</h4>
922
<div class="tags">
923
<table border="0" cellspacing="0" cellpadding="0">
924
  <tr>
925
    <td><b>return:</b>&nbsp;&nbsp;</td><td>barcode representation.</td>
926
  </tr>
927
  <tr>
928
    <td><b>access:</b>&nbsp;&nbsp;</td><td>protected</td>
929
  </tr>
930
</table>
931
</div>
932
<br /><br />
933
 
934
 
935
        <h4>Parameters:</h4>
936
    <div class="tags">
937
    <table border="0" cellspacing="0" cellpadding="0">
938
          <tr>
939
        <td class="type">string&nbsp;&nbsp;</td>
940
        <td><b>$seq</b>&nbsp;&nbsp;</td>
941
        <td>barcode as binary sequence  òparam array $bararray TCPDF barcode array to fill up</td>
942
      </tr>
943
          <tr>
944
        <td class="type">&nbsp;&nbsp;</td>
945
        <td><b>$bararray</b>&nbsp;&nbsp;</td>
946
        <td></td>
947
      </tr>
948
        </table>
949
    </div><br />
950
        <div class="top">[ <a href="#top">Top</a> ]</div>
951
  </div>
952
  <hr />
953
	<a name="methodchecksum_code39"></a>
954
	<h3>method checksum_code39 <span class="smalllinenumber">[line 375]</span></h3>
955
	<div class="function">
956
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
957
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
958
		<code>char checksum_code39(
959
string
960
$code)</code>
961
    </td></tr></table>
962
    </td></tr></table><br />
963
 
964
		Calculate CODE 39 checksum (modulo 43).<br /><br /><br /><br />
965
<h4>Tags:</h4>
966
<div class="tags">
967
<table border="0" cellspacing="0" cellpadding="0">
968
  <tr>
969
    <td><b>return:</b>&nbsp;&nbsp;</td><td>checksum.</td>
970
  </tr>
971
  <tr>
972
    <td><b>access:</b>&nbsp;&nbsp;</td><td>protected</td>
973
  </tr>
974
</table>
975
</div>
976
<br /><br />
977
 
978
 
979
        <h4>Parameters:</h4>
980
    <div class="tags">
981
    <table border="0" cellspacing="0" cellpadding="0">
982
          <tr>
983
        <td class="type">string&nbsp;&nbsp;</td>
984
        <td><b>$code</b>&nbsp;&nbsp;</td>
985
        <td>code to represent.</td>
986
      </tr>
987
        </table>
988
    </div><br />
989
        <div class="top">[ <a href="#top">Top</a> ]</div>
990
  </div>
991
  <hr />
992
	<a name="methodchecksum_code93"></a>
993
	<h3>method checksum_code93 <span class="smalllinenumber">[line 527]</span></h3>
994
	<div class="function">
995
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
996
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
997
		<code>string checksum_code93(
998
string
999
$code)</code>
1000
    </td></tr></table>
1001
    </td></tr></table><br />
1002
 
1003
		Calculate CODE 93 checksum (modulo 47).<br /><br /><br /><br />
1004
<h4>Tags:</h4>
1005
<div class="tags">
1006
<table border="0" cellspacing="0" cellpadding="0">
1007
  <tr>
1008
    <td><b>return:</b>&nbsp;&nbsp;</td><td>checksum code.</td>
1009
  </tr>
1010
  <tr>
1011
    <td><b>access:</b>&nbsp;&nbsp;</td><td>protected</td>
1012
  </tr>
1013
</table>
1014
</div>
1015
<br /><br />
1016
 
1017
 
1018
        <h4>Parameters:</h4>
1019
    <div class="tags">
1020
    <table border="0" cellspacing="0" cellpadding="0">
1021
          <tr>
1022
        <td class="type">string&nbsp;&nbsp;</td>
1023
        <td><b>$code</b>&nbsp;&nbsp;</td>
1024
        <td>code to represent.</td>
1025
      </tr>
1026
        </table>
1027
    </div><br />
1028
        <div class="top">[ <a href="#top">Top</a> ]</div>
1029
  </div>
1030
  <hr />
1031
	<a name="methodchecksum_s25"></a>
1032
	<h3>method checksum_s25 <span class="smalllinenumber">[line 572]</span></h3>
1033
	<div class="function">
1034
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
1035
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
1036
		<code>int checksum_s25(
1037
string
1038
$code)</code>
1039
    </td></tr></table>
1040
    </td></tr></table><br />
1041
 
1042
		Checksum for standard 2 of 5 barcodes.<br /><br /><br /><br />
1043
<h4>Tags:</h4>
1044
<div class="tags">
1045
<table border="0" cellspacing="0" cellpadding="0">
1046
  <tr>
1047
    <td><b>return:</b>&nbsp;&nbsp;</td><td>checksum.</td>
1048
  </tr>
1049
  <tr>
1050
    <td><b>access:</b>&nbsp;&nbsp;</td><td>protected</td>
1051
  </tr>
1052
</table>
1053
</div>
1054
<br /><br />
1055
 
1056
 
1057
        <h4>Parameters:</h4>
1058
    <div class="tags">
1059
    <table border="0" cellspacing="0" cellpadding="0">
1060
          <tr>
1061
        <td class="type">string&nbsp;&nbsp;</td>
1062
        <td><b>$code</b>&nbsp;&nbsp;</td>
1063
        <td>code to process.</td>
1064
      </tr>
1065
        </table>
1066
    </div><br />
1067
        <div class="top">[ <a href="#top">Top</a> ]</div>
1068
  </div>
1069
  <hr />
1070
	<a name="methoddec_to_hex"></a>
1071
	<h3>method dec_to_hex <span class="smalllinenumber">[line 1841]</span></h3>
1072
	<div class="function">
1073
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
1074
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
1075
		<code>string dec_to_hex(
1076
string
1077
$number)</code>
1078
    </td></tr></table>
1079
    </td></tr></table><br />
1080
 
1081
		Convert large integer number to hexadecimal representation.<br /><br /><p>(requires PHP bcmath extension)</p><br /><br /><br />
1082
<h4>Tags:</h4>
1083
<div class="tags">
1084
<table border="0" cellspacing="0" cellpadding="0">
1085
  <tr>
1086
    <td><b>return:</b>&nbsp;&nbsp;</td><td>hexadecimal representation</td>
1087
  </tr>
1088
  <tr>
1089
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
1090
  </tr>
1091
</table>
1092
</div>
1093
<br /><br />
1094
 
1095
 
1096
        <h4>Parameters:</h4>
1097
    <div class="tags">
1098
    <table border="0" cellspacing="0" cellpadding="0">
1099
          <tr>
1100
        <td class="type">string&nbsp;&nbsp;</td>
1101
        <td><b>$number</b>&nbsp;&nbsp;</td>
1102
        <td>number to convert specified as a string</td>
1103
      </tr>
1104
        </table>
1105
    </div><br />
1106
        <div class="top">[ <a href="#top">Top</a> ]</div>
1107
  </div>
1108
  <hr />
1109
	<a name="methodencode_code39_ext"></a>
1110
	<h3>method encode_code39_ext <span class="smalllinenumber">[line 324]</span></h3>
1111
	<div class="function">
1112
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
1113
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
1114
		<code>encoded encode_code39_ext(
1115
string
1116
$code)</code>
1117
    </td></tr></table>
1118
    </td></tr></table><br />
1119
 
1120
		Encode a string to be used for CODE 39 Extended mode.<br /><br /><br /><br />
1121
<h4>Tags:</h4>
1122
<div class="tags">
1123
<table border="0" cellspacing="0" cellpadding="0">
1124
  <tr>
1125
    <td><b>return:</b>&nbsp;&nbsp;</td><td>string.</td>
1126
  </tr>
1127
  <tr>
1128
    <td><b>access:</b>&nbsp;&nbsp;</td><td>protected</td>
1129
  </tr>
1130
</table>
1131
</div>
1132
<br /><br />
1133
 
1134
 
1135
        <h4>Parameters:</h4>
1136
    <div class="tags">
1137
    <table border="0" cellspacing="0" cellpadding="0">
1138
          <tr>
1139
        <td class="type">string&nbsp;&nbsp;</td>
1140
        <td><b>$code</b>&nbsp;&nbsp;</td>
1141
        <td>code to represent.</td>
1142
      </tr>
1143
        </table>
1144
    </div><br />
1145
        <div class="top">[ <a href="#top">Top</a> ]</div>
1146
  </div>
1147
  <hr />
1148
	<a name="methodgetBarcodeArray"></a>
1149
	<h3>method getBarcodeArray <span class="smalllinenumber">[line 85]</span></h3>
1150
	<div class="function">
1151
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
1152
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
1153
		<code>array getBarcodeArray(
1154
)</code>
1155
    </td></tr></table>
1156
    </td></tr></table><br />
1157
 
1158
		Return an array representations of barcode.<br /><br /><br /><br />
1159
<h4>Tags:</h4>
1160
<div class="tags">
1161
<table border="0" cellspacing="0" cellpadding="0">
1162
  <tr>
1163
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
1164
  </tr>
1165
</table>
1166
</div>
1167
<br /><br />
1168
 
1169
 
1170
        <div class="top">[ <a href="#top">Top</a> ]</div>
1171
  </div>
1172
  <hr />
1173
	<a name="methodhex_to_dec"></a>
1174
	<h3>method hex_to_dec <span class="smalllinenumber">[line 1865]</span></h3>
1175
	<div class="function">
1176
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
1177
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
1178
		<code>string hex_to_dec(
1179
string
1180
$hex)</code>
1181
    </td></tr></table>
1182
    </td></tr></table><br />
1183
 
1184
		Convert large hexadecimal number to decimal representation (string).<br /><br /><p>(requires PHP bcmath extension)</p><br /><br /><br />
1185
<h4>Tags:</h4>
1186
<div class="tags">
1187
<table border="0" cellspacing="0" cellpadding="0">
1188
  <tr>
1189
    <td><b>return:</b>&nbsp;&nbsp;</td><td>hexadecimal representation</td>
1190
  </tr>
1191
  <tr>
1192
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
1193
  </tr>
1194
</table>
1195
</div>
1196
<br /><br />
1197
 
1198
 
1199
        <h4>Parameters:</h4>
1200
    <div class="tags">
1201
    <table border="0" cellspacing="0" cellpadding="0">
1202
          <tr>
1203
        <td class="type">string&nbsp;&nbsp;</td>
1204
        <td><b>$hex</b>&nbsp;&nbsp;</td>
1205
        <td>hexadecimal number to convert specified as a string</td>
1206
      </tr>
1207
        </table>
1208
    </div><br />
1209
        <div class="top">[ <a href="#top">Top</a> ]</div>
1210
  </div>
1211
  <hr />
1212
	<a name="methodimb_crc11fcs"></a>
1213
	<h3>method imb_crc11fcs <span class="smalllinenumber">[line 1882]</span></h3>
1214
	<div class="function">
1215
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
1216
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
1217
		<code>int imb_crc11fcs(
1218
string
1219
$code_arr)</code>
1220
    </td></tr></table>
1221
    </td></tr></table><br />
1222
 
1223
		Intelligent Mail Barcode calculation of Frame Check Sequence<br /><br /><br /><br />
1224
<h4>Tags:</h4>
1225
<div class="tags">
1226
<table border="0" cellspacing="0" cellpadding="0">
1227
  <tr>
1228
    <td><b>return:</b>&nbsp;&nbsp;</td><td>11 bit Frame Check Sequence as integer (decimal base)</td>
1229
  </tr>
1230
  <tr>
1231
    <td><b>access:</b>&nbsp;&nbsp;</td><td>protected</td>
1232
  </tr>
1233
</table>
1234
</div>
1235
<br /><br />
1236
 
1237
 
1238
        <h4>Parameters:</h4>
1239
    <div class="tags">
1240
    <table border="0" cellspacing="0" cellpadding="0">
1241
          <tr>
1242
        <td class="type">string&nbsp;&nbsp;</td>
1243
        <td><b>$code_arr</b>&nbsp;&nbsp;</td>
1244
        <td>array of hexadecimal values (13 bytes holding 102 bits right justified).</td>
1245
      </tr>
1246
        </table>
1247
    </div><br />
1248
        <div class="top">[ <a href="#top">Top</a> ]</div>
1249
  </div>
1250
  <hr />
1251
	<a name="methodimb_reverse_us"></a>
1252
	<h3>method imb_reverse_us <span class="smalllinenumber">[line 1918]</span></h3>
1253
	<div class="function">
1254
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
1255
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
1256
		<code>int imb_reverse_us(
1257
int
1258
$num)</code>
1259
    </td></tr></table>
1260
    </td></tr></table><br />
1261
 
1262
		Reverse unsigned short value<br /><br /><br /><br />
1263
<h4>Tags:</h4>
1264
<div class="tags">
1265
<table border="0" cellspacing="0" cellpadding="0">
1266
  <tr>
1267
    <td><b>return:</b>&nbsp;&nbsp;</td><td>reversed value</td>
1268
  </tr>
1269
  <tr>
1270
    <td><b>access:</b>&nbsp;&nbsp;</td><td>protected</td>
1271
  </tr>
1272
</table>
1273
</div>
1274
<br /><br />
1275
 
1276
 
1277
        <h4>Parameters:</h4>
1278
    <div class="tags">
1279
    <table border="0" cellspacing="0" cellpadding="0">
1280
          <tr>
1281
        <td class="type">int&nbsp;&nbsp;</td>
1282
        <td><b>$num</b>&nbsp;&nbsp;</td>
1283
        <td>value to reversr</td>
1284
      </tr>
1285
        </table>
1286
    </div><br />
1287
        <div class="top">[ <a href="#top">Top</a> ]</div>
1288
  </div>
1289
  <hr />
1290
	<a name="methodimb_tables"></a>
1291
	<h3>method imb_tables <span class="smalllinenumber">[line 1935]</span></h3>
1292
	<div class="function">
1293
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
1294
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
1295
		<code>array imb_tables(
1296
int
1297
$n, int
1298
$size)</code>
1299
    </td></tr></table>
1300
    </td></tr></table><br />
1301
 
1302
		generate Nof13 tables used for Intelligent Mail Barcode<br /><br /><br /><br />
1303
<h4>Tags:</h4>
1304
<div class="tags">
1305
<table border="0" cellspacing="0" cellpadding="0">
1306
  <tr>
1307
    <td><b>return:</b>&nbsp;&nbsp;</td><td>requested table</td>
1308
  </tr>
1309
  <tr>
1310
    <td><b>access:</b>&nbsp;&nbsp;</td><td>protected</td>
1311
  </tr>
1312
</table>
1313
</div>
1314
<br /><br />
1315
 
1316
 
1317
        <h4>Parameters:</h4>
1318
    <div class="tags">
1319
    <table border="0" cellspacing="0" cellpadding="0">
1320
          <tr>
1321
        <td class="type">int&nbsp;&nbsp;</td>
1322
        <td><b>$n</b>&nbsp;&nbsp;</td>
1323
        <td>is the type of table: 2 for 2of13 table, 5 for 5of13table</td>
1324
      </tr>
1325
          <tr>
1326
        <td class="type">int&nbsp;&nbsp;</td>
1327
        <td><b>$size</b>&nbsp;&nbsp;</td>
1328
        <td>size of table (78 for n=2 and 1287 for n=5)</td>
1329
      </tr>
1330
        </table>
1331
    </div><br />
1332
        <div class="top">[ <a href="#top">Top</a> ]</div>
1333
  </div>
1334
  <hr />
1335
	<a name="methodsetBarcode"></a>
1336
	<h3>method setBarcode <span class="smalllinenumber">[line 95]</span></h3>
1337
	<div class="function">
1338
    <table width="90%" border="0" cellspacing="0" cellpadding="1"><tr><td class="code_border">
1339
    <table width="100%" border="0" cellspacing="0" cellpadding="2"><tr><td class="code">
1340
		<code>array setBarcode(
1341
string
1342
$code, string
1343
$type)</code>
1344
    </td></tr></table>
1345
    </td></tr></table><br />
1346
 
1347
		Set the barcode.<br /><br /><br /><br />
1348
<h4>Tags:</h4>
1349
<div class="tags">
1350
<table border="0" cellspacing="0" cellpadding="0">
1351
  <tr>
1352
    <td><b>access:</b>&nbsp;&nbsp;</td><td>public</td>
1353
  </tr>
1354
</table>
1355
</div>
1356
<br /><br />
1357
 
1358
 
1359
        <h4>Parameters:</h4>
1360
    <div class="tags">
1361
    <table border="0" cellspacing="0" cellpadding="0">
1362
          <tr>
1363
        <td class="type">string&nbsp;&nbsp;</td>
1364
        <td><b>$code</b>&nbsp;&nbsp;</td>
1365
        <td>code to print</td>
1366
      </tr>
1367
          <tr>
1368
        <td class="type">string&nbsp;&nbsp;</td>
1369
        <td><b>$type</b>&nbsp;&nbsp;</td>
1370
        <td>type of barcode: <ul><li>C39 : CODE 39 - ANSI MH10.8M-1983 - USD-3 - 3 of 9.</li><li>C39+ : CODE 39 with checksum</li><li>C39E : CODE 39 EXTENDED</li><li>C39E+ : CODE 39 EXTENDED + CHECKSUM</li><li>C93 : CODE 93 - USS-93</li><li>S25 : Standard 2 of 5</li><li>S25+ : Standard 2 of 5 + CHECKSUM</li><li>I25 : Interleaved 2 of 5</li><li>I25+ : Interleaved 2 of 5 + CHECKSUM</li><li>C128A : CODE 128 A</li><li>C128B : CODE 128 B</li><li>C128C : CODE 128 C</li><li>EAN2 : 2-Digits UPC-Based Extention</li><li>EAN5 : 5-Digits UPC-Based Extention</li><li>EAN8 : EAN 8</li><li>EAN13 : EAN 13</li><li>UPCA : UPC-A</li><li>UPCE : UPC-E</li><li>MSI : MSI (Variation of Plessey code)</li><li>MSI+ : MSI + CHECKSUM (modulo 11)</li><li>POSTNET : POSTNET</li><li>PLANET : PLANET</li><li>RMS4CC : RMS4CC (Royal Mail 4-state Customer Code) - CBC (Customer Bar Code)</li><li>KIX : KIX (Klant index - Customer index)</li><li>IMB: Intelligent Mail Barcode - Onecode - USPS-B-3200</li><li>CODABAR : CODABAR</li><li>CODE11 : CODE 11</li><li>PHARMA : PHARMACODE</li><li>PHARMA2T : PHARMACODE TWO-TRACKS</li></ul></td>
1371
      </tr>
1372
        </table>
1373
    </div><br />
1374
        <div class="top">[ <a href="#top">Top</a> ]</div>
1375
  </div>
1376
</div><br />
1377
 
1378
 
1379
        <div class="credit">
1380
		    <hr />
1381
		    Documentation generated on Sat, 04 Dec 2010 11:25:36 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
1382
	      </div>
1383
      </td></tr></table>
1384
    </td>
1385
  </tr>
1386
</table>
1387
 
1388
</body>
1389
</html>