escpos-php icon indicating copy to clipboard operation
escpos-php copied to clipboard

16 Digits Numeric barcode is not printing

Open aliibrahimroshan opened this issue 4 years ago • 1 comments

Hi , i am trying to print 16 digits barcode but unfortunatly its not printing only BARCODE_ITF is working but one of my scanner is not scanning it. Symbol LS2208 is not scanning . Other barcode format is also not printing the 16 digit barcode. Thanks

This one is printing but not scanning by scanner.

		$printer->setBarcodeTextPosition(P::BARCODE_TEXT_BELOW);
		$printer->barcode('3221201234567896',P::BARCODE_ITF);
		$printer->text("\n");

i have also tried this but not printing

$a = "{A012323392982"; $b = "{B012323392982"; $c = "{C" . chr(01) . chr(23) . chr(23) . chr(39) . chr(29) . chr(82);

$connector = new FilePrintConnector("php://stdout"); $printer = new Printer($connector); $printer -> setJustification(Printer::JUSTIFY_CENTER); $printer -> setBarcodeHeight(48); $printer->setBarcodeTextPosition(Printer::BARCODE_TEXT_BELOW); foreach(array($a, $b, $c) as $item) { $printer -> barcode($item, Printer::BARCODE_CODE128); $printer -> feed(1); } $printer -> cut(); $printer -> close();

aliibrahimroshan avatar Jun 29 '20 23:06 aliibrahimroshan

+1

askie avatar Jul 10 '22 04:07 askie