ZebraDevs/LinkOS-Android-Samples

Unable to print image and CPCL command in the same session

Opened this issue · 0 comments

I am trying to print a PDF-417 barcode along with other text in order to build a receipt.

I am not able to use the CPCL command for the barcode part (found this thread in Zebra portal https://developer.zebra.com/thread/34541#comment-47702).

So I am using CPCL to print text and ZPrinter.printImage to print the Barcode image I want.

However, after printing the image successfully no text after that is printed.

Example:

! 3 512 344 252 1
JOURNAL
CONTRAST 0
SETBOLD 1
TEXT 5 0 6 9 TESTING...

// Print image using ZPrinter.printImage
// Continue with CPCL text

TEXT 5 0 6 9 TESTING...
PRINT

This second part is not being printed.

Am I missing something?