escpos-php
escpos-php copied to clipboard
Trouble creating barcode with EPSON TM-U220D
Hello, I have an EPSON TM-U220D printer and I'm testing the library from Windows, so far everything works perfectly, but when I try to print a barcode it only shows the number, and when I try to print the image shows several characters, the printer does not support the barcode or what can I be doing wrong?
The U220 does not support barcodes, and the only image type you can use is a column-format bit image, which you will find as bitImageColumnFormat() in the library.
I suggest using loading the TM-U220 profile in any case, which is where we account for these types of differences.
$profile = CapabilityProfile::load("TM-U220")
$connector = ...;
$printer = new Printer($connector, $profile);
If you are interested in getting barcodes anyway, would you mind sharing the type & content of an example barcode? We can capture "software rendering of barcodes" as a feature request if it's possible to print a usable barcode in so few pixels.
Halo,
I have a question, I have the same printer as him and I use Go Language in my software, is there anyway I could use bitImageColumnFormat() in go? Since I don't really know about PHP and wanting to put a barcode to print using epson TM-U220D
Thank you