SourceForge Project Page

Interleaved 2 of 5

Example

Example Interleaved 2 of 5 symbol

Structure

The configuration for the default implementation is:

<barcode>
  <intl2of5>
      <height>{length:15mm}</height>
      <module-width>{length:0.21mm}</module-width>
      <wide-factor>{number:3.0}</wide-factor>
      <quiet-zone enabled="{boolean:true}">{length:10mw}</quiet-zone>
      <checksum>{checksum-mode:auto=ignore}</checksum>
      <human-readable>
        <placement>{human-readable-placement:bottom}</placement>
        <font-name>{font-name:Helvetica}</font-name>
        <font-size>{length:8pt}</font-size>
        <display-checksum>{boolean:false}</display-checksum>
      </human-readable>
  </intl2of5>
</barcode>

Notes

  • The height should be at least 0.15 times the barcode's length or 0.25 inches, whichever is larger.
  • The module width (width of narrow element) should be at least 7.5 mils (a mil is 1/1000 inch) or 0.19mm.
  • The multiple for the wide element should be between 2.0 and 3.0 if the narrow element is greater than 20 mils. If the narrow element is less than 20 mils, the ratio must exceed 2.2.
  • Quiet zones must be at least 10 times the module width or at least 0.25 inches.
  • display-checksum controls whether the calculated checksum should be included in the human-readable part.
  • Since this symbology interleaves two characters (one character in the bars, the next in the spaces), the message returned by the scanner always has an even number of digits. A zero digit is added in front if necessary.

Message format

  • Valid characters are 0-9.

Links