Open cbichis opened 6 years ago
@cbichis
Hello did you manage to solve this ? I need to do the same as you
Sending the ZPL using sockets will work, no need of command line and cups.
thanks so you are not using this code in the end
Setting the mime type to application/vnd.cups-raw
seems to work for me.
e.g.:
$job = new Job();
$job->addText('^XA...^XZ', '', 'application/vnd.cups-raw');
Hi,
For some printers is needed to send the file as raw. By example from terminal I send using this:
lpr -P Zebra-Technologies-ZTC-TLP-2824-Plus -o raw path/to/label.zpl
Which works perfectly, printing the label.
However, trying to send using raw doesnt seems to work with smalot/cups-ipp.
I have created a custom version of config yaml files adding to job.yaml this line:
This is needed to get over this: PHP Fatal error: Uncaught Smalot\Cups\CupsException: Property not found: "raw" .....
After this the Builder was created with the new option set:
and the job attribute was set:
$job->addAttribute('raw', null);
However, even after fixing this the (print) output of this is text, the ZPL commands from the submitted file.