-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot send as raw #8
Comments
@cbichis |
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 e.g.:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The text was updated successfully, but these errors were encountered: