Bar code printing with thermal transfer printer