Here is an example of a valid BarDIMM language command sequence to select a barcode:
< Esc >(s4p102h40v10,30b10,30s24670T< data >
24670T | Symbology: code 39, not encoding spaces before/after data |
4p | Readable text below bars, without start/stop chars (*) |
102h | Caption text in Univers Regular font |
40v | Bars height: 40 points 40/72=0.555 inches |
40*2.54/72=1.41 cm | |
10,30b | Thin bars are 10 dots wide, thick bars are 30 dots wide |
10,30s | Thin spaces are 10 dots wide, thick spaces are 30 dots wide |
< data > | The data to convert into barcode |
Barcode Rotation
To rotate a barcode, you can use PCL rotation commands. It is recommended you save the cursor position before activating the barcode, and restore that position after the barcode. Here is an example (sequences should be entered without carriage return):
< Esc >&fS< Esc >&a1000h1000V< Esc >&a90P< Esc >(s4p102h40v10,30b10,30s24670TJETMOBILEBARDIMM< Esc >(10U(sp10hsb4099T< Esc >&aP< Esc >&lf1S
where:
PCL5 command | description |
< Esc >&fS | Save cursor position |
< Esc >&a1000h1000V | Cursor positioning |
< Esc >&a90P | 90° rotation |
< Esc >(s4p102h40v10,30b10,30s24670T | Select Barcode |
JETMOBILEBARDIMM | Barcode Data |
< Esc >(10U(sp10hsb4099T | Switch back to Courier 10cpi font |
< Esc >&aP | No more rotation |
< Esc >&lf1S | Restore saved cursor position |
Other Information
Permanent and secondary fonts switching can be used with barcode fonts. It is highly recommended that a text font be used as primary font, and barcode font as secondary font. (please refer to the PCL developer guide for all information on primary and secondary fonts).
Complete BarDIMM language sequences samples are produced by BDTTGEN available on www.bardimm.com.
The BarDIMM language is not the PCL language. Therefore, some limitations apply regarding command compatibility:
- No font ID can be linked to a barcode created with the BarDIMM language
- The BarDIMM language cannot be used from HPGL2, Postscript or PCL6