0

I am new to Zebra printer stuff. I have got my ZPL commands. I need some Java API which can convert ZPL commands in Zebra printer format and need to print on console.

I have researched on this but I got so many approaches to send to Zebra printer.

I also got http://labelary.com/viewer.html. But I want to generate sticker output from ZPL commands using Java and in Java only at console. Please suggest me a approach.

1 Answer 1

1

You could take a look at this Java library (credit goes to the creator w3blogfr): https://github.com/w3blogfr/zebra-zpl

You may want to use ZebraNativeZpl function from this library to parse your ZPL commands and add it to ZebraLabel object since you already got your ZPL commands.

After you obtain your ZebraLabel object, there is a method getImagePreview() to generate preview image. But the content position in preview image could be different than what it actually is when printing it via Zebra printer.

Alternatively, you could try to send your ZPL commands to the web service offered by labelary.com (http://labelary.com/service.html) and display the result at where you want.

Sign up to request clarification or add additional context in comments.

1 Comment

Yes I need to preview my generated ZPL code with simulated result similar to labelary.com.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.