Skip to content

How to send raw data? #13

Open
Open
@olekhov

Description

@olekhov

Hello, I need to send raw data to printer.
I am using thermal transfer Zebra printer to print stickers.
Each sticker is encoded, like this:

.

N
q300
Q200,24
S1 ; speed
D2 ; density
A10,20,0,3,1,1,N,"-----------------"
A10,40,0,3,1,1,N,""
A10,60,0,3,1,1,N,"TEST 172.30.40.64"
A10,80,0,3,1,1,N,""
A10,120,0,3,1,1,N,"----------------"
P1
.

Problem is, this data is sent to printer as text, whereis it should be sent as raw.
As result, stickers look like this:
image

These are commands for EPL language, described here

I can print as raw with command like this:

$ cat label.txt | lpr -PZebra_Technologies_ZTC_GK420t -oraw

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions