Zend_Barcode-Objects_Details.xml 24 KB

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