Zend_Barcode-Objects_Details.xml 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- Reviewed: no -->
  3. <sect2 id="zend.barcode.objects.details">
  4. <title>Description of shipped barcodes</title>
  5. <para>
  6. You will find below detailed information about all barcode types shipped by default with
  7. Zend Framework.
  8. </para>
  9. <sect3 id="zend.barcode.objects.details.error">
  10. <title>Zend_Barcode_Object_Error</title>
  11. <para>
  12. <inlinegraphic width="400" align="center" valign="middle"
  13. fileref="figures/zend.barcode.objects.details.error.png" format="PNG"/>
  14. </para>
  15. <para>
  16. This barcode is a special case. It is internally used to automatically render
  17. an exception caught by the <classname>Zend_Barcode</classname> component.
  18. </para>
  19. </sect3>
  20. <sect3 id="zend.barcode.objects.details.code25">
  21. <title>Zend_Barcode_Object_Code25</title>
  22. <para>
  23. <inlinegraphic width="152" align="center" valign="middle"
  24. fileref="figures/zend.barcode.objects.details.code25.png" format="PNG"/>
  25. </para>
  26. <itemizedlist>
  27. <listitem>
  28. <para>
  29. <emphasis>Name:</emphasis> Code 25 (or Code 2 of 5 or Code 25 Industrial)
  30. </para>
  31. </listitem>
  32. <listitem>
  33. <para>
  34. <emphasis>Allowed characters:</emphasis> '0123456789'
  35. </para>
  36. </listitem>
  37. <listitem>
  38. <para>
  39. <emphasis>Checksum:</emphasis> optional (modulo 10)
  40. </para>
  41. </listitem>
  42. <listitem>
  43. <para>
  44. <emphasis>Length:</emphasis> variable
  45. </para>
  46. </listitem>
  47. </itemizedlist>
  48. <para>
  49. There are no particular options for this barcode.
  50. </para>
  51. </sect3>
  52. <sect3 id="zend.barcode.objects.details.code25interleaved">
  53. <title>Zend_Barcode_Object_Code25interleaved</title>
  54. <para>
  55. <inlinegraphic width="101" align="center" valign="middle"
  56. fileref="figures/zend.barcode.objects.details.int25.png" format="PNG"/>
  57. </para>
  58. <para>
  59. This barcode extends <classname>Zend_Barcode_Object_Code25</classname>
  60. (Code 2 of 5), and has the same particulars and options, and adds the following:
  61. </para>
  62. <itemizedlist>
  63. <listitem>
  64. <para>
  65. <emphasis>Name:</emphasis> Code 2 of 5 Interleaved
  66. </para>
  67. </listitem>
  68. <listitem>
  69. <para>
  70. <emphasis>Allowed characters:</emphasis> '0123456789'
  71. </para>
  72. </listitem>
  73. <listitem>
  74. <para>
  75. <emphasis>Checksum:</emphasis> optional (modulo 10)
  76. </para>
  77. </listitem>
  78. <listitem>
  79. <para>
  80. <emphasis>Length:</emphasis> variable (always even number of characters)
  81. </para>
  82. </listitem>
  83. </itemizedlist>
  84. <para>
  85. Available options include:
  86. </para>
  87. <table id="zend.barcode.objects.details.code25interleaved.table">
  88. <title>Zend_Barcode_Object_Code25interleaved Options</title>
  89. <tgroup cols="4">
  90. <thead>
  91. <row>
  92. <entry>Option</entry>
  93. <entry>Data Type</entry>
  94. <entry>Default Value</entry>
  95. <entry>Description</entry>
  96. </row>
  97. </thead>
  98. <tbody>
  99. <row>
  100. <entry><emphasis>withBearerBars</emphasis></entry>
  101. <entry><type>Boolean</type></entry>
  102. <entry><constant>FALSE</constant></entry>
  103. <entry>Draw a thick bar at the top and the bottom of the barcode.</entry>
  104. </row>
  105. </tbody>
  106. </tgroup>
  107. </table>
  108. <note>
  109. <para>
  110. If the number of characters is not even,
  111. <classname>Zend_Barcode_Object_Code25interleaved</classname> will automatically
  112. prepend the missing zero to the barcode text.
  113. </para>
  114. </note>
  115. </sect3>
  116. <sect3 id="zend.barcode.objects.details.ean2">
  117. <title>Zend_Barcode_Object_Ean2</title>
  118. <para>
  119. <inlinegraphic width="41" align="center" valign="middle"
  120. fileref="figures/zend.barcode.objects.details.ean2.png" format="PNG"/>
  121. </para>
  122. <para>
  123. This barcode extends <classname>Zend_Barcode_Object_Ean5</classname>
  124. (<acronym>EAN</acronym> 5), and has the same particulars and options, and adds the
  125. following:
  126. </para>
  127. <itemizedlist>
  128. <listitem>
  129. <para>
  130. <emphasis>Name:</emphasis> <acronym>EAN</acronym>-2
  131. </para>
  132. </listitem>
  133. <listitem>
  134. <para>
  135. <emphasis>Allowed characters:</emphasis> '0123456789'
  136. </para>
  137. </listitem>
  138. <listitem>
  139. <para>
  140. <emphasis>Checksum:</emphasis> only use internally but not displayed
  141. </para>
  142. </listitem>
  143. <listitem>
  144. <para>
  145. <emphasis>Length:</emphasis> 2 characters
  146. </para>
  147. </listitem>
  148. </itemizedlist>
  149. <para>
  150. There are no particular options for this barcode.
  151. </para>
  152. <note>
  153. <para>
  154. If the number of characters is lower than 2,
  155. <classname>Zend_Barcode_Object_Ean2</classname> will automatically
  156. prepend the missing zero to the barcode text.
  157. </para>
  158. </note>
  159. </sect3>
  160. <sect3 id="zend.barcode.objects.details.ean5">
  161. <title>Zend_Barcode_Object_Ean5</title>
  162. <para>
  163. <inlinegraphic width="68" align="center" valign="middle"
  164. fileref="figures/zend.barcode.objects.details.ean5.png" format="PNG"/>
  165. </para>
  166. <para>
  167. This barcode extends <classname>Zend_Barcode_Object_Ean13</classname>
  168. (<acronym>EAN</acronym> 13), and has the same particulars and options, and adds the
  169. following:
  170. </para>
  171. <itemizedlist>
  172. <listitem>
  173. <para>
  174. <emphasis>Name:</emphasis> <acronym>EAN</acronym>-5
  175. </para>
  176. </listitem>
  177. <listitem>
  178. <para>
  179. <emphasis>Allowed characters:</emphasis> '0123456789'
  180. </para>
  181. </listitem>
  182. <listitem>
  183. <para>
  184. <emphasis>Checksum:</emphasis> only use internally but not displayed
  185. </para>
  186. </listitem>
  187. <listitem>
  188. <para>
  189. <emphasis>Length:</emphasis> 5 characters
  190. </para>
  191. </listitem>
  192. </itemizedlist>
  193. <para>
  194. There are no particular options for this barcode.
  195. </para>
  196. <note>
  197. <para>
  198. If the number of characters is lower than 5,
  199. <classname>Zend_Barcode_Object_Ean5</classname> will automatically
  200. prepend the missing zero to the barcode text.
  201. </para>
  202. </note>
  203. </sect3>
  204. <sect3 id="zend.barcode.objects.details.ean8">
  205. <title>Zend_Barcode_Object_Ean8</title>
  206. <para>
  207. <inlinegraphic width="82" align="center" valign="middle"
  208. fileref="figures/zend.barcode.objects.details.ean8.png" format="PNG"/>
  209. </para>
  210. <para>
  211. This barcode extends <classname>Zend_Barcode_Object_Ean13</classname>
  212. (<acronym>EAN</acronym> 13), and has the same particulars and options, and adds the
  213. following:
  214. </para>
  215. <itemizedlist>
  216. <listitem>
  217. <para>
  218. <emphasis>Name:</emphasis> <acronym>EAN</acronym>-8
  219. </para>
  220. </listitem>
  221. <listitem>
  222. <para>
  223. <emphasis>Allowed characters:</emphasis> '0123456789'
  224. </para>
  225. </listitem>
  226. <listitem>
  227. <para>
  228. <emphasis>Checksum:</emphasis> mandatory (modulo 10)
  229. </para>
  230. </listitem>
  231. <listitem>
  232. <para>
  233. <emphasis>Length:</emphasis> 8 characters (including checksum)
  234. </para>
  235. </listitem>
  236. </itemizedlist>
  237. <para>
  238. There are no particular options for this barcode.
  239. </para>
  240. <note>
  241. <para>
  242. If the number of characters is lower than 8,
  243. <classname>Zend_Barcode_Object_Ean8</classname> will automatically
  244. prepend the missing zero to the barcode text.
  245. </para>
  246. </note>
  247. </sect3>
  248. <sect3 id="zend.barcode.objects.details.ean13">
  249. <title>Zend_Barcode_Object_Ean13</title>
  250. <para>
  251. <inlinegraphic width="113" align="center" valign="middle"
  252. fileref="figures/zend.barcode.objects.details.ean13.png" format="PNG"/>
  253. </para>
  254. <itemizedlist>
  255. <listitem>
  256. <para>
  257. <emphasis>Name:</emphasis> <acronym>EAN</acronym>-13
  258. </para>
  259. </listitem>
  260. <listitem>
  261. <para>
  262. <emphasis>Allowed characters:</emphasis> '0123456789'
  263. </para>
  264. </listitem>
  265. <listitem>
  266. <para>
  267. <emphasis>Checksum:</emphasis> mandatory (modulo 10)
  268. </para>
  269. </listitem>
  270. <listitem>
  271. <para>
  272. <emphasis>Length:</emphasis> 13 characters (including checksum)
  273. </para>
  274. </listitem>
  275. </itemizedlist>
  276. <para>
  277. There are no particular options for this barcode.
  278. </para>
  279. <note>
  280. <para>
  281. If the number of characters is lower than 13,
  282. <classname>Zend_Barcode_Object_Ean13</classname> will automatically
  283. prepend the missing zero to the barcode text.
  284. </para>
  285. </note>
  286. </sect3>
  287. <sect3 id="zend.barcode.objects.details.code39">
  288. <title>Zend_Barcode_Object_Code39</title>
  289. <para>
  290. <inlinegraphic width="275" align="center" valign="middle"
  291. fileref="figures/zend.barcode.introduction.example-1.png" format="PNG"/>
  292. </para>
  293. <itemizedlist>
  294. <listitem>
  295. <para>
  296. <emphasis>Name:</emphasis> Code 39
  297. </para>
  298. </listitem>
  299. <listitem>
  300. <para>
  301. <emphasis>Allowed characters:</emphasis>
  302. '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ -.$/+%'
  303. </para>
  304. </listitem>
  305. <listitem>
  306. <para>
  307. <emphasis>Checksum:</emphasis> optional (modulo 43)
  308. </para>
  309. </listitem>
  310. <listitem>
  311. <para>
  312. <emphasis>Length:</emphasis> variable
  313. </para>
  314. </listitem>
  315. </itemizedlist>
  316. <note>
  317. <para>
  318. <classname>Zend_Barcode_Object_Code39</classname> will automatically add
  319. the start and stop characters ('*') for you.
  320. </para>
  321. </note>
  322. <para>
  323. There are no particular options for this barcode.
  324. </para>
  325. </sect3>
  326. <sect3 id="zend.barcode.objects.details.identcode">
  327. <title>Zend_Barcode_Object_Identcode</title>
  328. <para>
  329. <inlinegraphic width="137" align="center" valign="middle"
  330. fileref="figures/zend.barcode.objects.details.identcode.png" format="PNG"/>
  331. </para>
  332. <para>
  333. This barcode extends <classname>Zend_Barcode_Object_Code25interleaved</classname>
  334. (Code 2 of 5 Interleaved), and inherits some of its capabilities; it also has a few
  335. particulars of its own.
  336. </para>
  337. <itemizedlist>
  338. <listitem>
  339. <para>
  340. <emphasis>Name:</emphasis> Identcode (Deutsche Post Identcode)
  341. </para>
  342. </listitem>
  343. <listitem>
  344. <para>
  345. <emphasis>Allowed characters:</emphasis> '0123456789'
  346. </para>
  347. </listitem>
  348. <listitem>
  349. <para>
  350. <emphasis>Checksum:</emphasis> mandatory (modulo 10 different from Code25)
  351. </para>
  352. </listitem>
  353. <listitem>
  354. <para>
  355. <emphasis>Length:</emphasis> 12 characters (including checksum)
  356. </para>
  357. </listitem>
  358. </itemizedlist>
  359. <para>
  360. There are no particular options for this barcode.
  361. </para>
  362. <note>
  363. <para>
  364. If the number of characters is lower than 12,
  365. <classname>Zend_Barcode_Object_Identcode</classname> will automatically prepend
  366. missing zeros to the barcode text.
  367. </para>
  368. </note>
  369. </sect3>
  370. <sect3 id="zend.barcode.objects.details.itf14">
  371. <title>Zend_Barcode_Object_Itf14</title>
  372. <para>
  373. <inlinegraphic width="155" align="center" valign="middle"
  374. fileref="figures/zend.barcode.objects.details.itf14.png" format="PNG"/>
  375. </para>
  376. <para>
  377. This barcode extends <classname>Zend_Barcode_Object_Code25interleaved</classname>
  378. (Code 2 of 5 Interleaved), and inherits some of its capabilities; it also has a few
  379. particulars of its own.
  380. </para>
  381. <itemizedlist>
  382. <listitem>
  383. <para>
  384. <emphasis>Name:</emphasis> <acronym>ITF</acronym>-14
  385. </para>
  386. </listitem>
  387. <listitem>
  388. <para>
  389. <emphasis>Allowed characters:</emphasis> '0123456789'
  390. </para>
  391. </listitem>
  392. <listitem>
  393. <para>
  394. <emphasis>Checksum:</emphasis> mandatory (modulo 10)
  395. </para>
  396. </listitem>
  397. <listitem>
  398. <para>
  399. <emphasis>Length:</emphasis> 14 characters (including checksum)
  400. </para>
  401. </listitem>
  402. </itemizedlist>
  403. <para>
  404. There are no particular options for this barcode.
  405. </para>
  406. <note>
  407. <para>
  408. If the number of characters is lower than 14,
  409. <classname>Zend_Barcode_Object_Itf14</classname> will automatically prepend
  410. missing zeros to the barcode text.
  411. </para>
  412. </note>
  413. </sect3>
  414. <sect3 id="zend.barcode.objects.details.leitcode">
  415. <title>Zend_Barcode_Object_Leitcode</title>
  416. <para>
  417. <inlinegraphic width="155" align="center" valign="middle"
  418. fileref="figures/zend.barcode.objects.details.leitcode.png" format="PNG"/>
  419. </para>
  420. <para>
  421. This barcode extends <classname>Zend_Barcode_Object_Identcode</classname>
  422. (Deutsche Post Identcode), and inherits some of its capabilities; it also has a few
  423. particulars of its own.
  424. </para>
  425. <itemizedlist>
  426. <listitem>
  427. <para>
  428. <emphasis>Name:</emphasis> Leitcode (Deutsche Post Leitcode)
  429. </para>
  430. </listitem>
  431. <listitem>
  432. <para>
  433. <emphasis>Allowed characters:</emphasis> '0123456789'
  434. </para>
  435. </listitem>
  436. <listitem>
  437. <para>
  438. <emphasis>Checksum:</emphasis> mandatory (modulo 10 different from Code25)
  439. </para>
  440. </listitem>
  441. <listitem>
  442. <para>
  443. <emphasis>Length:</emphasis> 14 characters (including checksum)
  444. </para>
  445. </listitem>
  446. </itemizedlist>
  447. <para>
  448. There are no particular options for this barcode.
  449. </para>
  450. <note>
  451. <para>
  452. If the number of characters is lower than 14,
  453. <classname>Zend_Barcode_Object_Leitcode</classname> will automatically
  454. prepend missing zeros to the barcode text.
  455. </para>
  456. </note>
  457. </sect3>
  458. <sect3 id="zend.barcode.objects.details.planet">
  459. <title>Zend_Barcode_Object_Planet</title>
  460. <para>
  461. <inlinegraphic width="286" align="center" valign="middle"
  462. fileref="figures/zend.barcode.objects.details.planet.png" format="PNG"/>
  463. </para>
  464. <itemizedlist>
  465. <listitem>
  466. <para>
  467. <emphasis>Name:</emphasis> Planet (PostaL Alpha Numeric Encoding Technique)
  468. </para>
  469. </listitem>
  470. <listitem>
  471. <para>
  472. <emphasis>Allowed characters:</emphasis> '0123456789'
  473. </para>
  474. </listitem>
  475. <listitem>
  476. <para>
  477. <emphasis>Checksum:</emphasis> mandatory (modulo 10)
  478. </para>
  479. </listitem>
  480. <listitem>
  481. <para>
  482. <emphasis>Length:</emphasis> 12 or 14 characters (including checksum)
  483. </para>
  484. </listitem>
  485. </itemizedlist>
  486. <para>
  487. There are no particular options for this barcode.
  488. </para>
  489. </sect3>
  490. <sect3 id="zend.barcode.objects.details.postnet">
  491. <title>Zend_Barcode_Object_Postnet</title>
  492. <para>
  493. <inlinegraphic width="286" align="center" valign="middle"
  494. fileref="figures/zend.barcode.objects.details.postnet.png" format="PNG"/>
  495. </para>
  496. <itemizedlist>
  497. <listitem>
  498. <para>
  499. <emphasis>Name:</emphasis> Postnet (POSTal Numeric Encoding Technique)
  500. </para>
  501. </listitem>
  502. <listitem>
  503. <para>
  504. <emphasis>Allowed characters:</emphasis> '0123456789'
  505. </para>
  506. </listitem>
  507. <listitem>
  508. <para>
  509. <emphasis>Checksum:</emphasis> mandatory (modulo 10)
  510. </para>
  511. </listitem>
  512. <listitem>
  513. <para>
  514. <emphasis>Length:</emphasis> 6, 7, 10 or 12 characters (including checksum)
  515. </para>
  516. </listitem>
  517. </itemizedlist>
  518. <para>
  519. There are no particular options for this barcode.
  520. </para>
  521. </sect3>
  522. <sect3 id="zend.barcode.objects.details.royalmail">
  523. <title>Zend_Barcode_Object_Royalmail</title>
  524. <para>
  525. <inlinegraphic width="158" align="center" valign="middle"
  526. fileref="figures/zend.barcode.objects.details.royalmail.png" format="PNG"/>
  527. </para>
  528. <itemizedlist>
  529. <listitem>
  530. <para>
  531. <emphasis>Name:</emphasis> Royal Mail or <acronym>RM4SCC</acronym> (Royal Mail
  532. 4-State Customer Code)
  533. </para>
  534. </listitem>
  535. <listitem>
  536. <para>
  537. <emphasis>Allowed characters:</emphasis> '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  538. </para>
  539. </listitem>
  540. <listitem>
  541. <para>
  542. <emphasis>Checksum:</emphasis> mandatory
  543. </para>
  544. </listitem>
  545. <listitem>
  546. <para>
  547. <emphasis>Length:</emphasis> variable
  548. </para>
  549. </listitem>
  550. </itemizedlist>
  551. <para>
  552. There are no particular options for this barcode.
  553. </para>
  554. </sect3>
  555. <sect3 id="zend.barcode.objects.details.upca">
  556. <title>Zend_Barcode_Object_Upca</title>
  557. <para>
  558. <inlinegraphic width="115" align="center" valign="middle"
  559. fileref="figures/zend.barcode.objects.details.upca.png" format="PNG"/>
  560. </para>
  561. <para>
  562. This barcode extends <classname>Zend_Barcode_Object_Ean13</classname>
  563. (<acronym>EAN</acronym>-13), and inherits some of its capabilities; it also has a few
  564. particulars of its own.
  565. </para>
  566. <itemizedlist>
  567. <listitem>
  568. <para>
  569. <emphasis>Name:</emphasis> <acronym>UPC</acronym>-A (Universal Product Code)
  570. </para>
  571. </listitem>
  572. <listitem>
  573. <para>
  574. <emphasis>Allowed characters:</emphasis> '0123456789'
  575. </para>
  576. </listitem>
  577. <listitem>
  578. <para>
  579. <emphasis>Checksum:</emphasis> mandatory (modulo 10)
  580. </para>
  581. </listitem>
  582. <listitem>
  583. <para>
  584. <emphasis>Length:</emphasis> 12 characters (including checksum)
  585. </para>
  586. </listitem>
  587. </itemizedlist>
  588. <para>
  589. There are no particular options for this barcode.
  590. </para>
  591. <note>
  592. <para>
  593. If the number of characters is lower than 12,
  594. <classname>Zend_Barcode_Object_Upca</classname> will automatically
  595. prepend missing zeros to the barcode text.
  596. </para>
  597. </note>
  598. </sect3>
  599. <sect3 id="zend.barcode.objects.details.upce">
  600. <title>Zend_Barcode_Object_Upce</title>
  601. <para>
  602. <inlinegraphic width="71" align="center" valign="middle"
  603. fileref="figures/zend.barcode.objects.details.upce.png" format="PNG"/>
  604. </para>
  605. <para>
  606. This barcode extends <classname>Zend_Barcode_Object_Upca</classname>
  607. (<acronym>UPC</acronym>-A), and inherits some of its capabilities; it also has a few
  608. particulars of its own. The first character of the text to encode
  609. is the system (0 or 1).
  610. </para>
  611. <itemizedlist>
  612. <listitem>
  613. <para>
  614. <emphasis>Name:</emphasis> <acronym>UPC</acronym>-E (Universal Product Code)
  615. </para>
  616. </listitem>
  617. <listitem>
  618. <para>
  619. <emphasis>Allowed characters:</emphasis> '0123456789'
  620. </para>
  621. </listitem>
  622. <listitem>
  623. <para>
  624. <emphasis>Checksum:</emphasis> mandatory (modulo 10)
  625. </para>
  626. </listitem>
  627. <listitem>
  628. <para>
  629. <emphasis>Length:</emphasis> 8 characters (including checksum)
  630. </para>
  631. </listitem>
  632. </itemizedlist>
  633. <para>
  634. There are no particular options for this barcode.
  635. </para>
  636. <note>
  637. <para>
  638. If the number of characters is lower than 8,
  639. <classname>Zend_Barcode_Object_Upce</classname> will automatically
  640. prepend missing zeros to the barcode text.
  641. </para>
  642. </note>
  643. <note>
  644. <para>
  645. If the first character of the text to encode is not 0 or 1,
  646. <classname>Zend_Barcode_Object_Upce</classname> will automatically
  647. replace it by 0.
  648. </para>
  649. </note>
  650. </sect3>
  651. </sect2>