Help for printing with EPL language

157 views
Skip to first unread message

lucas....@eccosys.com.br

unread,
Jan 31, 2021, 8:20:29 AM1/31/21
to qz-print
Good morning,

I'm trying to print labels using the EPL language, but I'm not printing in the right way.
The ZPL language is printing correctly, but for EPL it is not working.
I wonder what I might be doing wrong.
I am using the Zebra GC420t printer.

For the ZPL language I am using the following configuration:

let base = {
               type: 'raw',
               format: 'pdf',
               flavor: 'base64',
               data: data,
               options: {language: 'ZPL', pageWidth: 800}
            };
let data = [
                [
                        '^XA\n',
                        base,
                        '^XZ\n'
                 ]
           ];
var config = qz.configs.create(printerName, {altPrinting: false, rasterize: true, scaleContent: true});
qz.print(config, data).then(...)

For the EPL language I am using the following configuration:

let base = {
                type: 'raw',
                format: 'pdf',
                flavor: 'base64',
                data: data,
                options: {language: 'EPL', pageWidth: 800}
           };
let data = [
                [
                       '\nN\n',
                       'q609\n',
                       'Q203,26\n',
                       base,
                       '\nP1,1\n'
                ]
           ];
var config = qz.configs.create(printerName, {altPrinting: false, rasterize: true, scaleContent: true});
qz.print(config, data).then(...)

I will attach an image of how it is printing.


Lite Finocchiaro

unread,
Feb 1, 2021, 12:07:13 PM2/1/21
to lucas....@eccosys.com.br, qz-print
Lucas:

I'm afraid I get a 403 error for the image, so I cannot see the picture of your results.

That being said, Can you confirm that you are sending a PDF to be converted to ZPL/EPL as a raster graphic in those respective markup languages?

The most basic test of EPL with QZ-Tray is in our sample at https://demo.qz.io using the Commands option. Can you try that and share your results?

To further troubleshoot, we'll need to know

1. Operating System
2. Java version
3. QZ-Tray version

It is quite common for altPrinting: true to solve problems regarding EPL, especially when leveraging the raster graphic conversion in QZ-Tray, such as image, or in your case, rawPDF, in both MacOS and Linux.

I look forward to your reply.

Kind regards,

Lite Finocchiaro
VP, QZ Industries

--
You received this message because you are subscribed to the Google Groups "qz-print" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qz-print+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qz-print/718af907-54ce-4045-adbd-77dc9135d0cao%40googlegroups.com.

lucas....@eccosys.com.br

unread,
Feb 1, 2021, 9:42:55 PM2/1/21
to qz-print
Good night, Lite Finocchiaro

Here is some information you asked me:

1. Operating System
        Windows 10 pro
2. Java version
         java version "1.8.0_281"
3. QZ-Tray version
        QZ Tray v2.1.2

Link to image: https://ibb.co/1RKZvC5 

altPrinting: true, the same problem happened.

That being said, Can you confirm that you are sending a PDF to be converted to ZPL / EPL as a raster graphic in those respective markup languages?
          I am sending the same data to both ZPL and EPL.

The most basic test of EPL with QZ-Tray is in our sample at https://demo.qz.io using the Commands option. Can you try that and share your results?
          The same problem occurs, you end up printing only a part of the label. In the image I sent you can see the difference.


Kind regards,

Lucas

To unsubscribe from this group and stop receiving emails from it, send an email to qz-p...@googlegroups.com.

Lite Finocchiaro

unread,
Feb 1, 2021, 10:58:17 PM2/1/21
to lucas....@eccosys.com.br, qz-print
Lucas:

Thank you for the link to the picture and the other details.

I originally thought you weren't getting any print results at all, but that is not the case. AltPrinting will not affect Windows printing, so it can be left as-is while we troubleshoot the issue.

Your EPL print job is getting cut off, only printing what looks like the upper third of the source pdf. 

I would like to see what the EPL output is. This can often be obtained from the logs. If there is sensitive information you prefer not to share on the list, you may send them to me off-list.

Similarly, I would like to see the base64 PDF content to reproduce the issue on similar hardware.

Looking forward to your reply,

Lite





To unsubscribe from this group and stop receiving emails from it, send an email to qz-print+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qz-print/8eb67562-e790-48cf-8896-64cdf3763195o%40googlegroups.com.

lucas....@eccosys.com.br

unread,
Feb 2, 2021, 10:25:45 PM2/2/21
to qz-print
Good night, Lite Finocchiaro

Thank you so much for your help so far.
I will send you an email with the data of the logs and pdf file, because as it is something more confidential, it will be more secure.
Could I send an email with the data to that address li...@qz.io?

Yours sincerely,

Lucas

Lite Finocchiaro

unread,
Feb 2, 2021, 10:38:44 PM2/2/21
to lucas....@eccosys.com.br, qz-print
Absolutely! li...@qz.io or lite.m.fi...@gmail.com 

Either address is fine.

Regards,

Lite



To unsubscribe from this group and stop receiving emails from it, send an email to qz-print+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qz-print/f3446ea4-5b8c-4fb9-a38a-dbbd0c9a49fao%40googlegroups.com.

lucas....@eccosys.com.br

unread,
Feb 4, 2021, 5:15:00 PM2/4/21
to qz-print
Good night, Lite Finocchiaro.

I sent the email to li...@qz.io.
could you confirm me if you received the email?

Sincerely

Em quarta-feira, 3 de fevereiro de 2021 00:38:44 UTC-3, Lite Finocchiaro escreveu:

Lite Finocchiaro

unread,
Feb 4, 2021, 5:25:26 PM2/4/21
to lucas....@eccosys.com.br, qz-print
Yes, I have. Thank you. 

I will reply to both this email and that one with my findings.  

Kind regards,

To unsubscribe from this group and stop receiving emails from it, send an email to qz-print+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qz-print/0110fa93-dd64-4378-8bb0-99b05124f3dfo%40googlegroups.com.

lucas....@eccosys.com.br

unread,
Feb 12, 2021, 3:13:58 PM2/12/21
to qz-print
Good afternoon, Lite Finocchiaro.

Could you tell me how the analysis is going?
Would you need any more information?

Sincerely

Lucas

Lite Finocchiaro

unread,
Feb 12, 2021, 4:02:36 PM2/12/21
to lucas....@eccosys.com.br, qz-print
Lucas:

I'm sorry for the late reply.

I have reproduced your error with rawPDF printing in EPL, but we must investigate further.

This may be a limitation of the graphic command in EPL, or it is a problem with how we send raster data in the EPL language.

I have created a tracker for the issue on Github:


I will reply here once we have figured it out.

Kind regards,


To unsubscribe from this group and stop receiving emails from it, send an email to qz-print+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qz-print/e9eb3230-f071-4337-a78c-d4ac8320f023o%40googlegroups.com.

lucas....@eccosys.com.br

unread,
Feb 13, 2021, 9:25:47 AM2/13/21
to qz-print
Good morning, Lite Finocchiaro.


Thanks a lot for the help.
As soon as you find out what it might be, let me know.



Kind regards,

Lucas

Lite Finocchiaro

unread,
Feb 13, 2021, 10:40:02 AM2/13/21
to lucas....@eccosys.com.br, qz-print
Lucas:

Thanks for bringing this to our attention. It looks like our example for EPL was originally intended for a smaller label size.  I was able to print both your PDF and QZ's pdf_sample.pdf without any cut-off by modifying the EPL commands.

I have modified your function to use values for a 203 dpi printer using 4x6 inch labels. Changes are highlighted in yellow.


let base = {
                type: 'raw',
                format: 'pdf',
                flavor: 'base64',
                data: data,
                options: {language: 'EPL', pageWidth: 812}
           };
let data = [
                [
                       '\nN\n',
                       'q812\n', // 4 inches wide * 203 dpi
                       'Q1218,26\n', // 6 inches tall * 203 dpi
                       base,
                       '\nP1,1\n'
                ]
           ];
var config = qz.configs.create(printerName, {altPrinting: false, rasterize: true, scaleContent: true});
qz.print(config, data).then(...)


Please let us know if you have any problems.

Cheers,

Lite

To unsubscribe from this group and stop receiving emails from it, send an email to qz-print+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qz-print/49a0971e-ef0b-474a-9190-97bb41f79f50o%40googlegroups.com.

lucas....@eccosys.com.br

unread,
Feb 23, 2021, 10:02:58 PM2/23/21
to qz-print
Good night, Lite Finocchiaro.

With this modification that was mentioned it worked perfectly.
Thank you very much for all your help.

Kind regards,

Lucas
Reply all
Reply to author
Forward
0 new messages