Giter VIP home page Giter VIP logo

label-printer's People

Contributors

jhaoda avatar scrutinizer-auto-fixer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

label-printer's Issues

Old print are added to the new one

Hi, I found this problem printing with this library: when I launch the print the n time, it also print all the past n-1 prints overlapped in the same label. I don't know what could be cause this strange behaviour.

Printing via CUPS

Any tips on how to print via CUPS or lpd? (e.g. lpd://192.168.0.5/labelprinter)

Domain Exception Error

Hi, i try to integrate with honeywell label printer and got error
local.ERROR: {"exception":"[object] (DomainException(code: 0): at /vendor/php-aidc/label-printer/src/Printer.php:37)
I already make connection between pc and printer, pc able to reach printer when browse printer IP.
Thanks for this great package!

Error on Batch printing

Discussed in #16

Originally posted by Xelosy July 20, 2022
Hi i get the following error on Batch Printing:

Fatal error: Uncaught ErrorException: fwrite(): send of 8192 bytes failed with errno=10035 A non-blocking socket operation could not be completed immediately. in C:\inetpub\wwwroot\Intranet\Label\vendor\php-aidc\label-printer\src\Connector\NetworkConnector.php:69 Stack trace: #0 C:\inetpub\wwwroot\Intranet\Label\vendor\php-aidc\label-printer\src\Connector\NetworkConnector.php(71): PhpAidc\LabelPrinter\Connector\NetworkConnector->flushErrors() #1 C:\inetpub\wwwroot\Intranet\Label\vendor\php-aidc\label-printer\src\Printer.php(40): PhpAidc\LabelPrinter\Connector\NetworkConnector->write('SIZE 50 mm,25 m...') #2 C:\inetpub\wwwroot\Intranet\Label\Label.php(466): PhpAidc\LabelPrinter\Printer->print(Object(PhpAidc\LabelPrinter\Label\Batch)) #3 {main} thrown in C:\inetpub\wwwroot\Intranet\Label\vendor\php-aidc\label-printer\src\Connector\NetworkConnector.php on line 69

My Code:

'''
$batch= (new Batch());
foreach ($_POST as $key => $value) {
$label = Label::create(Unit::MM(), 50, 25); //Unit, Width, Height
$label->charset(Charset::UTF8());
$label->add(new Clear());
$label->add(new Raw("DENSITY " . $temp));
$label->add(Element::textLine(($xFactor * 10), ($yFactor * 10), $current, 'arial.TTF', 25)); // x, y , text, font, size
..... much more $label->add( some elements) ......
$batch->add($label);
}
$printer->print($batch);
'''

Its working for a few labels and then the error message from above appears. Is there a problem how i create the label in the foreach loop?

Empty labels

Hello! I'm using TSC TE310 connected via ethernet, tried all examples, but printer always prints completely empty labels, no text or anything on them.

Where problem could be ? How to debug it ? :(

Uncaught DomainException in Printer.php:37

Hi everyone,
For printing our product label, we are determining to use this package because this one would be powerful in our case. So created spike shortly and run it on the local connecting to the printer, but I am getting error as following:

Fatal error: Uncaught DomainException in vendor/php-aidc/label-printer/src/Printer.php:37

I am not sure what's happened because it's first time to use this one for me.
That would be appreciated with your helps.
Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.