1 <?xml version="1.0" encoding="UTF-8"?>
3 <sect2 id="zend.barcode.objects.details">
4 <title>Description of shipped barcodes</title>
7 You will find below detailed information about all barcode types shipped by default with
11 <sect3 id="zend.barcode.objects.details.error">
12 <title>Zend_Barcode_Object_Error</title>
15 <inlinegraphic width="400" align="center" valign="middle"
16 fileref="figures/zend.barcode.objects.details.error.png" format="PNG"/>
20 This barcode is a special case. It is internally used to automatically render
21 an exception caught by the <classname>Zend_Barcode</classname> component.
25 <sect3 id="zend.barcode.objects.details.code25">
26 <title>Zend_Barcode_Object_Code25</title>
29 <inlinegraphic width="152" align="center" valign="middle"
30 fileref="figures/zend.barcode.objects.details.code25.png" format="PNG"/>
36 <emphasis>Name:</emphasis> Code 25 (or Code 2 of 5 or Code 25 Industrial)
42 <emphasis>Allowed characters:</emphasis> '0123456789'
48 <emphasis>Checksum:</emphasis> optional (modulo 10)
54 <emphasis>Length:</emphasis> variable
60 There are no particular options for this barcode.
64 <sect3 id="zend.barcode.objects.details.code25interleaved">
65 <title>Zend_Barcode_Object_Code25interleaved</title>
68 <inlinegraphic width="101" align="center" valign="middle"
69 fileref="figures/zend.barcode.objects.details.int25.png" format="PNG"/>
73 This barcode extends <classname>Zend_Barcode_Object_Code25</classname>
74 (Code 2 of 5), and has the same particulars and options, and adds the following:
80 <emphasis>Name:</emphasis> Code 2 of 5 Interleaved
86 <emphasis>Allowed characters:</emphasis> '0123456789'
92 <emphasis>Checksum:</emphasis> optional (modulo 10)
98 <emphasis>Length:</emphasis> variable (always even number of characters)
104 Available options include:
107 <table id="zend.barcode.objects.details.code25interleaved.table">
108 <title>Zend_Barcode_Object_Code25interleaved Options</title>
113 <entry>Option</entry>
114 <entry>Data Type</entry>
115 <entry>Default Value</entry>
116 <entry>Description</entry>
122 <entry><emphasis>withBearerBars</emphasis></entry>
123 <entry><type>Boolean</type></entry>
124 <entry><constant>FALSE</constant></entry>
125 <entry>Draw a thick bar at the top and the bottom of the barcode.</entry>
133 If the number of characters is not even,
134 <classname>Zend_Barcode_Object_Code25interleaved</classname> will automatically
135 prepend the missing zero to the barcode text.
140 <sect3 id="zend.barcode.objects.details.ean2">
141 <title>Zend_Barcode_Object_Ean2</title>
144 <inlinegraphic width="41" align="center" valign="middle"
145 fileref="figures/zend.barcode.objects.details.ean2.png" format="PNG"/>
149 This barcode extends <classname>Zend_Barcode_Object_Ean5</classname>
150 (<acronym>EAN</acronym> 5), and has the same particulars and options, and adds the
157 <emphasis>Name:</emphasis> <acronym>EAN</acronym>-2
163 <emphasis>Allowed characters:</emphasis> '0123456789'
169 <emphasis>Checksum:</emphasis> only use internally but not displayed
175 <emphasis>Length:</emphasis> 2 characters
181 There are no particular options for this barcode.
186 If the number of characters is lower than 2,
187 <classname>Zend_Barcode_Object_Ean2</classname> will automatically
188 prepend the missing zero to the barcode text.
193 <sect3 id="zend.barcode.objects.details.ean5">
194 <title>Zend_Barcode_Object_Ean5</title>
197 <inlinegraphic width="68" align="center" valign="middle"
198 fileref="figures/zend.barcode.objects.details.ean5.png" format="PNG"/>
202 This barcode extends <classname>Zend_Barcode_Object_Ean13</classname>
203 (<acronym>EAN</acronym> 13), and has the same particulars and options, and adds the
210 <emphasis>Name:</emphasis> <acronym>EAN</acronym>-5
216 <emphasis>Allowed characters:</emphasis> '0123456789'
222 <emphasis>Checksum:</emphasis> only use internally but not displayed
228 <emphasis>Length:</emphasis> 5 characters
234 There are no particular options for this barcode.
239 If the number of characters is lower than 5,
240 <classname>Zend_Barcode_Object_Ean5</classname> will automatically
241 prepend the missing zero to the barcode text.
246 <sect3 id="zend.barcode.objects.details.ean8">
247 <title>Zend_Barcode_Object_Ean8</title>
250 <inlinegraphic width="82" align="center" valign="middle"
251 fileref="figures/zend.barcode.objects.details.ean8.png" format="PNG"/>
255 This barcode extends <classname>Zend_Barcode_Object_Ean13</classname>
256 (<acronym>EAN</acronym> 13), and has the same particulars and options, and adds the
263 <emphasis>Name:</emphasis> <acronym>EAN</acronym>-8
269 <emphasis>Allowed characters:</emphasis> '0123456789'
275 <emphasis>Checksum:</emphasis> mandatory (modulo 10)
281 <emphasis>Length:</emphasis> 8 characters (including checksum)
287 There are no particular options for this barcode.
292 If the number of characters is lower than 8,
293 <classname>Zend_Barcode_Object_Ean8</classname> will automatically
294 prepend the missing zero to the barcode text.
299 <sect3 id="zend.barcode.objects.details.ean13">
300 <title>Zend_Barcode_Object_Ean13</title>
303 <inlinegraphic width="113" align="center" valign="middle"
304 fileref="figures/zend.barcode.objects.details.ean13.png" format="PNG"/>
310 <emphasis>Name:</emphasis> <acronym>EAN</acronym>-13
316 <emphasis>Allowed characters:</emphasis> '0123456789'
322 <emphasis>Checksum:</emphasis> mandatory (modulo 10)
328 <emphasis>Length:</emphasis> 13 characters (including checksum)
334 There are no particular options for this barcode.
339 If the number of characters is lower than 13,
340 <classname>Zend_Barcode_Object_Ean13</classname> will automatically
341 prepend the missing zero to the barcode text.
345 The option <property>withQuietZones</property> has no effect with this barcode.
350 <sect3 id="zend.barcode.objects.details.code39">
351 <title>Zend_Barcode_Object_Code39</title>
354 <inlinegraphic width="275" align="center" valign="middle"
355 fileref="figures/zend.barcode.introduction.example-1.png" format="PNG"/>
361 <emphasis>Name:</emphasis> Code 39
367 <emphasis>Allowed characters:</emphasis>
368 '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ -.$/+%'
374 <emphasis>Checksum:</emphasis> optional (modulo 43)
380 <emphasis>Length:</emphasis> variable
387 <classname>Zend_Barcode_Object_Code39</classname> will automatically add
388 the start and stop characters ('*') for you.
393 There are no particular options for this barcode.
397 <sect3 id="zend.barcode.objects.details.identcode">
398 <title>Zend_Barcode_Object_Identcode</title>
401 <inlinegraphic width="137" align="center" valign="middle"
402 fileref="figures/zend.barcode.objects.details.identcode.png" format="PNG"/>
406 This barcode extends <classname>Zend_Barcode_Object_Code25interleaved</classname>
407 (Code 2 of 5 Interleaved), and inherits some of its capabilities; it also has a few
408 particulars of its own.
414 <emphasis>Name:</emphasis> Identcode (Deutsche Post Identcode)
420 <emphasis>Allowed characters:</emphasis> '0123456789'
426 <emphasis>Checksum:</emphasis> mandatory (modulo 10 different from Code25)
432 <emphasis>Length:</emphasis> 12 characters (including checksum)
438 There are no particular options for this barcode.
443 If the number of characters is lower than 12,
444 <classname>Zend_Barcode_Object_Identcode</classname> will automatically prepend
445 missing zeros to the barcode text.
450 <sect3 id="zend.barcode.objects.details.itf14">
451 <title>Zend_Barcode_Object_Itf14</title>
454 <inlinegraphic width="155" align="center" valign="middle"
455 fileref="figures/zend.barcode.objects.details.itf14.png" format="PNG"/>
459 This barcode extends <classname>Zend_Barcode_Object_Code25interleaved</classname>
460 (Code 2 of 5 Interleaved), and inherits some of its capabilities; it also has a few
461 particulars of its own.
467 <emphasis>Name:</emphasis> <acronym>ITF</acronym>-14
473 <emphasis>Allowed characters:</emphasis> '0123456789'
479 <emphasis>Checksum:</emphasis> mandatory (modulo 10)
485 <emphasis>Length:</emphasis> 14 characters (including checksum)
491 There are no particular options for this barcode.
496 If the number of characters is lower than 14,
497 <classname>Zend_Barcode_Object_Itf14</classname> will automatically prepend
498 missing zeros to the barcode text.
503 <sect3 id="zend.barcode.objects.details.leitcode">
504 <title>Zend_Barcode_Object_Leitcode</title>
507 <inlinegraphic width="155" align="center" valign="middle"
508 fileref="figures/zend.barcode.objects.details.leitcode.png" format="PNG"/>
512 This barcode extends <classname>Zend_Barcode_Object_Identcode</classname>
513 (Deutsche Post Identcode), and inherits some of its capabilities; it also has a few
514 particulars of its own.
520 <emphasis>Name:</emphasis> Leitcode (Deutsche Post Leitcode)
526 <emphasis>Allowed characters:</emphasis> '0123456789'
532 <emphasis>Checksum:</emphasis> mandatory (modulo 10 different from Code25)
538 <emphasis>Length:</emphasis> 14 characters (including checksum)
544 There are no particular options for this barcode.
549 If the number of characters is lower than 14,
550 <classname>Zend_Barcode_Object_Leitcode</classname> will automatically
551 prepend missing zeros to the barcode text.
556 <sect3 id="zend.barcode.objects.details.planet">
557 <title>Zend_Barcode_Object_Planet</title>
560 <inlinegraphic width="286" align="center" valign="middle"
561 fileref="figures/zend.barcode.objects.details.planet.png" format="PNG"/>
567 <emphasis>Name:</emphasis> Planet (PostaL Alpha Numeric Encoding Technique)
573 <emphasis>Allowed characters:</emphasis> '0123456789'
579 <emphasis>Checksum:</emphasis> mandatory (modulo 10)
585 <emphasis>Length:</emphasis> 12 or 14 characters (including checksum)
591 There are no particular options for this barcode.
595 <sect3 id="zend.barcode.objects.details.postnet">
596 <title>Zend_Barcode_Object_Postnet</title>
599 <inlinegraphic width="286" align="center" valign="middle"
600 fileref="figures/zend.barcode.objects.details.postnet.png" format="PNG"/>
606 <emphasis>Name:</emphasis> Postnet (POSTal Numeric Encoding Technique)
612 <emphasis>Allowed characters:</emphasis> '0123456789'
618 <emphasis>Checksum:</emphasis> mandatory (modulo 10)
624 <emphasis>Length:</emphasis> 6, 7, 10 or 12 characters (including checksum)
630 There are no particular options for this barcode.
634 <sect3 id="zend.barcode.objects.details.royalmail">
635 <title>Zend_Barcode_Object_Royalmail</title>
638 <inlinegraphic width="158" align="center" valign="middle"
639 fileref="figures/zend.barcode.objects.details.royalmail.png" format="PNG"/>
645 <emphasis>Name:</emphasis> Royal Mail or <acronym>RM4SCC</acronym> (Royal Mail
646 4-State Customer Code)
652 <emphasis>Allowed characters:</emphasis> '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ'
658 <emphasis>Checksum:</emphasis> mandatory
664 <emphasis>Length:</emphasis> variable
670 There are no particular options for this barcode.
674 <sect3 id="zend.barcode.objects.details.upca">
675 <title>Zend_Barcode_Object_Upca</title>
678 <inlinegraphic width="115" align="center" valign="middle"
679 fileref="figures/zend.barcode.objects.details.upca.png" format="PNG"/>
683 This barcode extends <classname>Zend_Barcode_Object_Ean13</classname>
684 (<acronym>EAN</acronym>-13), and inherits some of its capabilities; it also has a few
685 particulars of its own.
691 <emphasis>Name:</emphasis> <acronym>UPC</acronym>-A (Universal Product Code)
697 <emphasis>Allowed characters:</emphasis> '0123456789'
703 <emphasis>Checksum:</emphasis> mandatory (modulo 10)
709 <emphasis>Length:</emphasis> 12 characters (including checksum)
715 There are no particular options for this barcode.
720 If the number of characters is lower than 12,
721 <classname>Zend_Barcode_Object_Upca</classname> will automatically
722 prepend missing zeros to the barcode text.
726 The option <property>withQuietZones</property> has no effect with this barcode.
731 <sect3 id="zend.barcode.objects.details.upce">
732 <title>Zend_Barcode_Object_Upce</title>
735 <inlinegraphic width="71" align="center" valign="middle"
736 fileref="figures/zend.barcode.objects.details.upce.png" format="PNG"/>
740 This barcode extends <classname>Zend_Barcode_Object_Upca</classname>
741 (<acronym>UPC</acronym>-A), and inherits some of its capabilities; it also has a few
742 particulars of its own. The first character of the text to encode
743 is the system (0 or 1).
749 <emphasis>Name:</emphasis> <acronym>UPC</acronym>-E (Universal Product Code)
755 <emphasis>Allowed characters:</emphasis> '0123456789'
761 <emphasis>Checksum:</emphasis> mandatory (modulo 10)
767 <emphasis>Length:</emphasis> 8 characters (including checksum)
773 There are no particular options for this barcode.
778 If the number of characters is lower than 8,
779 <classname>Zend_Barcode_Object_Upce</classname> will automatically
780 prepend missing zeros to the barcode text.
786 If the first character of the text to encode is not 0 or 1,
787 <classname>Zend_Barcode_Object_Upce</classname> will automatically
792 The option <property>withQuietZones</property> has no effect with this barcode.