ZebraDevs/LinkOS-Android-Samples

print image and text together

salim-lachdhaf opened this issue · 7 comments

is it possible to print an image and text in the same ticket, i can't find how go do it, i find either print a text alone or print an image online , please help me to achieve my case

You can have the image and the text in one ZPL file. A single API call to send the content of this ZPL file to the printer will print both the image and the text. Hope this answers your question.

but what other type of zebra like cpc, could you please paste and example code to do that ?

What is CPC? Do you mean CPCL? For CPCL and their examples, please refer to this document - https://www.zebra.com/content/dam/zebra/manuals/printers/common/programming/cpcl-link-os-pg-en.pdf

is there any example for zpl file that contains both text and image

thank you for your support

There are many examples in ZPL User's Manual. Or, you can download ZebraDesigner for Developers 3 tool to create examples yourself.

@ssizebra can we get cpcl code from this ZebraDesigner For Developer3 tools?

We cannot get the CPCL output from the ZebraDesigner for Developer 3 tool, as it does not support CPCL. It only supports ZPL. However, you can get the CPCL output from the ZebraDesigner Essentials 3 or ZebraDesigner Professional 3.