ensure that the code to print is compatible with the ESC/POS formats and also automatically check this format before printing (barcode() method).