IllegalMediaType Error when printing pdf from Ricoh P800 printer

2,923 views
Skip to first unread message

Anand Hirulkar

unread,
Apr 8, 2022, 12:36:22 PM4/8/22
to qz-print
Hi,

I'm printing a pdf document using QZ Tray Adapter through Ricoh P800 printer. It prints the PDF but gives an extra page with PCL XL Error Warning: IllegalMediaType.

The PDF doesn't contain ZPL code, it has PDF format and flavor base64 - 
var data = [{
                        type: 'pixel',
                        format: 'pdf',
                        flavor: 'base64',
                        data: getData
                    }];

Also can we get the status of the printer back to QZ Tray Adapter if there is no paper in the printer trays?

Lite Finocchiaro

unread,
Apr 8, 2022, 12:44:09 PM4/8/22
to Anand Hirulkar, qz-print
Anand:

Sorry for the trouble you're having. Is the printer tray specified in the config?

I did a quick search for your error, with various results. Some fixed it by updating to the PCL5 driver (or the PCL6 driver), but many resolved it by restarting both the printer and the affected PC.

If you want to share your logs, feel free to do so.

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/63bc7aff-f2d2-4d60-a9ff-2eea882ce33fn%40googlegroups.com.

Anand Hirulkar

unread,
Apr 11, 2022, 12:29:34 PM4/11/22
to qz-print
Hi Lite,

This is the configuration parameter we are sending -
var configurOptions = {
                        copies: response.configuration.copies,
                        rotation: response.configuration.rotation,
                        orientation: response.configuration.orientation,
                        printerTray: response.configuration.printerTray,
                        size: { width: response.configuration.size.width, height: response.configuration.size.height },
                        units: response.configuration.units
                    };


And these are the logs from qz tray adapter live feed -

[INFO] 2022-04-11T12:15:13,236 @ qz.ws.PrintSocketClient:-1
    Connection closed: 1001 - null
[INFO] 2022-04-11T12:15:13,236 @ qz.ws.SocketConnection:-1
    Closing all communication channels for An anonymous request
[INFO] 2022-04-11T12:15:13,272 @ qz.ws.PrintSocketClient:-1
    Connection opened from /0:0:0:0:0:0:0:1:58053 on socket port 8182
[DEBUG] 2022-04-11T12:15:13,276 @ qz.ws.PrintSocketClient:-1
    Message: {"call":"getVersion","promise":{},"timestamp":1649693713274,"uid":"1jpitz","signAlgorithm":"SHA1","position":{"x":683,"y":364}}
[DEBUG] 2022-04-11T12:15:13,279 @ qz.ws.PrintSocketClient:-1
    Message: {"certificate":null,"promise":{},"timestamp":1649693713279,"uid":"4v4cht","signAlgorithm":"SHA1","position":{"x":683,"y":364}}
[DEBUG] 2022-04-11T12:15:13,287 @ qz.common.TrayManager:-1
    Calculated dialog centered at: java.awt.Point[x=513,y=276]
[INFO] 2022-04-11T12:15:14,550 @ qz.common.TrayManager:-1
    Allowed An anonymous request to connect to QZ Tray
[DEBUG] 2022-04-11T12:15:14,551 @ qz.ws.PrintSocketClient:-1
    Message: {"call":"printers.find","promise":{},"params":{},"timestamp":1649693714551,"uid":"70d5ib","signAlgorithm":"SHA1","position":{"x":683,"y":364}}
[DEBUG] 2022-04-11T12:15:14,556 @ qz.common.TrayManager:-1
    Calculated dialog centered at: java.awt.Point[x=497,y=276]
[INFO] 2022-04-11T12:15:15,052 @ qz.common.TrayManager:-1
    Allowed An anonymous request to access connected printers
[DEBUG] 2022-04-11T12:15:15,052 @ qz.printer.PrintServiceMatcher:-1
    Found 6 printers
[DEBUG] 2022-04-11T12:15:44,893 @ qz.ws.PrintSocketClient:-1
    Message: {"call":"printers.find","promise":{},"params":{"query":"RxLaser1"},"timestamp":1649693744891,"uid":"ptef25","signAlgorithm":"SHA1","position":{"x":683,"y":364}}
[DEBUG] 2022-04-11T12:15:44,897 @ qz.common.TrayManager:-1
    Calculated dialog centered at: java.awt.Point[x=497,y=276]
[INFO] 2022-04-11T12:15:45,885 @ qz.common.TrayManager:-1
    Allowed An anonymous request to access connected printers
[DEBUG] 2022-04-11T12:15:45,886 @ qz.printer.PrintServiceMatcher:-1
    Searching for PrintService matching RxLaser1
[DEBUG] 2022-04-11T12:15:45,886 @ qz.printer.PrintServiceMatcher:-1
    Found 6 printers
[DEBUG] 2022-04-11T12:15:45,887 @ qz.printer.PrintServiceMatcher:-1
    Found match: RxLaser1
[DEBUG] 2022-04-11T12:15:45,888 @ qz.ws.PrintSocketClient:-1
    Message: {"call":"printers.startListening","promise":{},"params":{"printerNames":["RxLaser1"]},"timestamp":1649693745887,"uid":"ml875c","signAlgorithm":"SHA1","position":{"x":683,"y":364}}
[DEBUG] 2022-04-11T12:15:45,898 @ qz.common.TrayManager:-1
    Calculated dialog centered at: java.awt.Point[x=505,y=276]
[INFO] 2022-04-11T12:15:47,036 @ qz.common.TrayManager:-1
    Allowed An anonymous request to listen for printer status
[DEBUG] 2022-04-11T12:15:47,052 @ qz.ws.PrintSocketClient:-1
    Message: {"call":"printers.getStatus","promise":{},"timestamp":1649693747041,"uid":"sr70qt","signAlgorithm":"SHA1","position":{"x":683,"y":364}}
[DEBUG] 2022-04-11T12:15:47,054 @ qz.ws.PrintSocketClient:-1
    Message: {"call":"print","promise":{},"params":{"printer":{"name":"RxLaser1"},"options":{"bounds":null,"colorType":"color","copies":"1","density":0,"duplex":false,"fallbackDensity":null,"interpolation":"bicubic","jobName":null,"legacy":false,"margins":0,"orientation":"portrait","paperThickness":null,"printerTray":"tray 1","rasterize":false,"rotation":"0","scaleContent":true,"size":{"width":"216","height":"279"},"units":"mm","encoding":null,"spool":null,"altPrinting":false},"data":[{"type":"pixel","format":"pdf","flavor":"base64","data":"\"JVBERi0xLjQKJeLjz9MKMyAwIG9iago8PC9Db2xvclNwYWNlL0RldmljZUdyYXkvU3VidHlwZS9JbWFnZS9IZWlnaHQgMjcvRmlsdGVyL0ZsYXRlRGVjb2RlL1R5cGUvWE9iamVjdC9XaWR0aCAxNTYvTGVuZ3RoIDI3L0JpdHNQZXJDb21wb25lbnQgOD4+c3RyZWFtCnic7cExAQAAAMKg/qlnCU+gAAAAAP4GFz9kfQplbmRzdHJlYW0KZW5kb2JqCjQgMCBvYmoKPDwvQ29sb3JTcGFjZVsvQ2FsUkdCPDwvR2FtbWFbMi4yIDIuM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wMCBuIAowMDAwMDA1Mjc4IDAwMDAwIG4gCjAwMDAwMDUzODMgMDAwMDAgbiAKdHJhaWxlcgo8PC9JbmZvIDEzIDAgUi9JRCBbPDg1ZjFlZmFlMGZjZjgxYTliYTcxMjcxMGE2YWFiNjc2PjwxYTVhMWM5MzY1YTc3ODU1OGMwNzkzOTRmZjczNTIzZD5dL1Jvb3QgMTIgMCBSL1NpemUgMTQ+PgpzdGFydHhyZWYKNTU5MwolJUVPRgo=\""}]},"timestamp":1649693747041,"uid":"luyawk","signAlgorithm":"SHA1","position":{"x":683,"y":364}}
[DEBUG] 2022-04-11T12:15:47,156 @ qz.common.TrayManager:-1
    Calculated dialog centered at: java.awt.Point[x=518,y=276]
[INFO] 2022-04-11T12:15:47,917 @ qz.common.TrayManager:-1
    Allowed An anonymous request to print to RxLaser1
[TRACE] 2022-04-11T12:15:47,918 @ qz.utils.PrintingUtilities:-1
    Waiting for processor, 0/4 already in use
[DEBUG] 2022-04-11T12:15:47,918 @ qz.utils.PrintingUtilities:-1
    Using qz.printer.action.PrintPDF to print
[DEBUG] 2022-04-11T12:15:47,919 @ qz.printer.PrintServiceMatcher:-1
    Searching for PrintService matching RxLaser1
[DEBUG] 2022-04-11T12:15:47,919 @ qz.printer.PrintServiceMatcher:-1
    Found 6 printers
[DEBUG] 2022-04-11T12:15:47,919 @ qz.printer.PrintServiceMatcher:-1
    Found match: RxLaser1
[DEBUG] 2022-04-11T12:15:48,032 @ qz.printer.action.PrintPDF:-1
    Parsed 1 files for printing
[TRACE] 2022-04-11T12:15:48,081 @ qz.printer.action.PrintPixel:-1
    DPI: [0.0x0.0]    CNV: 2.83464
[TRACE] 2022-04-11T12:15:48,082 @ qz.printer.action.PrintPixel:-1
    Drawable area: 0.0,0.0:216.0,279.0
[TRACE] 2022-04-11T12:15:48,082 @ qz.printer.action.PrintPixel:-1
    [one-sided, portrait, Coated, (0.0,0.0)->(216.0,279.0)mm, color]
[TRACE] 2022-04-11T12:15:48,085 @ qz.printer.action.PrintPixel:-1
    DPI: [0.0x0.0]    CNV: 2.83464
[TRACE] 2022-04-11T12:15:48,086 @ qz.printer.action.PrintPixel:-1
    Drawable area: 0.0,0.0:216.0,279.0
[TRACE] 2022-04-11T12:15:48,086 @ qz.printer.action.PrintPixel:-1
    [one-sided, portrait, Coated, (0.0,0.0)->(216.0,279.0)mm, color]
[INFO] 2022-04-11T12:15:48,086 @ qz.printer.action.PrintPixel:-1
    Starting printing (1 copies)
[TRACE] 2022-04-11T12:15:48,183 @ qz.printer.BookBundle:-1
    Requested page 0 for printing
[DEBUG] 2022-04-11T12:15:48,184 @ qz.printer.PDFWrapper:-1
    Paper area: 0,0:612,790
[TRACE] 2022-04-11T12:15:48,240 @ qz.printer.BookBundle:-1
    Requested page 0 for printing
[DEBUG] 2022-04-11T12:15:48,240 @ qz.printer.PDFWrapper:-1
    Paper area: 0,0:612,790
[INFO] 2022-04-11T12:15:48,304 @ qz.utils.PrintingUtilities:-1
    Printing complete
[TRACE] 2022-04-11T12:15:48,305 @ qz.utils.PrintingUtilities:-1
    Returning processor back to pool
[DEBUG] 2022-04-11T12:15:51,056 @ qz.ws.PrintSocketClient:-1
    Message: {"call":"printers.getStatus","promise":{},"timestamp":1649693748306,"uid":"mz1w47","signAlgorithm":"SHA1","position":{"x":683,"y":364}}

Anand Hirulkar

unread,
Apr 11, 2022, 12:36:14 PM4/11/22
to qz-print
Hi Lite,

We also tested the PDF printing for the  Ricoh P800 printer with the "Printer Tray" parameter from your demo testing link https://demo.qz.io/#pxlContent and got the same error i.e. IllegalMediaType 
 
These are the live feed logs from qz tray - 

[DEBUG] 2022-04-11T12:11:23,027 @ qz.ws.PrintSocketClient:-1
    Message: {"call":"print","promise":{},"params":{"printer":{"name":"RxLaser1"},"options":{"bounds":null,"colorType":"color","copies":1,"density":0,"duplex":false,"fallbackDensity":null,"interpolation":"bicubic","jobName":null,"legacy":false,"margins":0,"orientation":null,"paperThickness":null,"printerTray":"Tray 1","rasterize":false,"rotation":0,"scaleContent":true,"size":null,"units":"in","encoding":null,"spool":{},"altPrinting":false},"data":[{"type":"pixel","format":"pdf","flavor":"file","data":"https://demo.qz.io/assets/pdf_sample.pdf","options":{"pageWidth":"","pageHeight":"","pageRanges":""}}]},"timestamp":1649693483025,"uid":"m7myax","signAlgorithm":"SHA512","position":{"x":683,"y":364}}
[WARN] 2022-04-11T12:11:23,029 @ qz.ws.PrintSocketClient:-1
    Bad signature on request
[DEBUG] 2022-04-11T12:11:23,036 @ qz.common.TrayManager:-1
    Calculated dialog centered at: java.awt.Point[x=532,y=276]
[INFO] 2022-04-11T12:11:24,157 @ qz.common.TrayManager:-1
    Allowed localhost to print to RxLaser1
[TRACE] 2022-04-11T12:11:24,158 @ qz.utils.PrintingUtilities:-1

    Waiting for processor, 0/4 already in use
[DEBUG] 2022-04-11T12:11:24,158 @ qz.utils.PrintingUtilities:-1
    Using qz.printer.action.PrintPDF to print
[DEBUG] 2022-04-11T12:11:24,159 @ qz.printer.PrintServiceMatcher:-1

    Searching for PrintService matching RxLaser1
[DEBUG] 2022-04-11T12:11:24,160 @ qz.printer.PrintServiceMatcher:-1
    Found 6 printers
[DEBUG] 2022-04-11T12:11:24,160 @ qz.printer.PrintServiceMatcher:-1
    Found match: RxLaser1
[DEBUG] 2022-04-11T12:11:24,911 @ qz.printer.action.PrintPDF:-1

    Parsed 1 files for printing
[TRACE] 2022-04-11T12:11:24,961 @ qz.printer.action.PrintPixel:-1
    DPI: [0.0x0.0]    CNV: 72.0
[TRACE] 2022-04-11T12:11:24,961 @ qz.printer.action.PrintPixel:-1
    Drawable area: 0.0,0.0:8.5,11.0
[TRACE] 2022-04-11T12:11:24,962 @ qz.printer.action.PrintPixel:-1
    [one-sided, Coated, (0.0,0.0)->(215.9,279.4)mm, color]
[TRACE] 2022-04-11T12:11:24,964 @ qz.printer.action.PrintPixel:-1
    DPI: [0.0x0.0]    CNV: 72.0
[TRACE] 2022-04-11T12:11:24,965 @ qz.printer.action.PrintPixel:-1
    Drawable area: 0.0,0.0:8.5,11.0
[TRACE] 2022-04-11T12:11:24,965 @ qz.printer.action.PrintPixel:-1
    [one-sided, Coated, (0.0,0.0)->(215.9,279.4)mm, color]
[INFO] 2022-04-11T12:11:24,965 @ qz.printer.action.PrintPixel:-1
    Starting printing (1 copies)
[TRACE] 2022-04-11T12:11:25,060 @ qz.printer.BookBundle:-1

    Requested page 0 for printing
[DEBUG] 2022-04-11T12:11:25,060 @ qz.printer.PDFWrapper:-1
    Paper area: 0,0:612,792
[TRACE] 2022-04-11T12:11:25,238 @ qz.printer.BookBundle:-1

    Requested page 0 for printing
[DEBUG] 2022-04-11T12:11:25,238 @ qz.printer.PDFWrapper:-1
    Paper area: 0,0:612,792
[TRACE] 2022-04-11T12:11:25,411 @ qz.printer.BookBundle:-1

    Requested page 0 for printing
[DEBUG] 2022-04-11T12:11:25,412 @ qz.printer.PDFWrapper:-1
    Paper area: 0,0:612,792
[INFO] 2022-04-11T12:11:25,545 @ qz.utils.PrintingUtilities:-1
    Printing complete
[TRACE] 2022-04-11T12:11:25,546 @ qz.utils.PrintingUtilities:-1

    Returning processor back to pool

Lite Finocchiaro

unread,
Apr 11, 2022, 4:25:59 PM4/11/22
to Anand Hirulkar, qz-print
Anand:

The logs indicate that QZ-Tray is performing as expected. I would reach out to Ricoh regarding this error.

You can also re-install the printer using the PCL5 driver. Some versions of Windows have problems with the PCL6 (PCL XL) driver.

Kind regards,

Lite Finocchiaro
VP QZ Industries

Tres Finocchiaro

unread,
Apr 12, 2022, 11:23:12 AM4/12/22
to Anand Hirulkar, qz-print
Anand,

Are you sure your size is correct?

For example, A4 is 210 x 297 however the logs suggest that you're sending 216 x 279.

If this size is correct, you may need to inform your printer about this size.

Alternately, you can omit the size information and allow QZ Tray to detect the size reported by the printer.

Best of regards,


Anand Hirulkar

unread,
Apr 12, 2022, 12:10:33 PM4/12/22
to qz-print
Hi,

I've have also tried to print pdf through Ricoh P 800 using your website for sample testing -   https://demo.qz.io/#pxlContent 

Passed the 'Tray 1' value in the 'Printer Tray' parameter as below and got an extra page printed with the same PCL XL Error Warning: IllegalMediaType MicrosoftTeams-image (7).png 

Tres Finocchiaro

unread,
Apr 12, 2022, 12:18:45 PM4/12/22
to Anand Hirulkar, qz-print
Thanks for sharing.

As Lite suggested, this is going to be a Ricoh-specific printer issue then.  Here's a spiceworks article describing some potential solutions, including some that Lite has already suggested:

Anand Hirulkar

unread,
Apr 13, 2022, 9:34:36 AM4/13/22
to qz-print

Hi,

The IllegalMediaType error is not raised when pdf is printed from any application other than QZ-Tray adapter through the Ricoh P 800 printer, so not sure if it is specific to Ricoh printer or QZ-Tray adapter. 

Tres Finocchiaro

unread,
Apr 13, 2022, 11:13:34 AM4/13/22
to Anand Hirulkar, qz-print
It may be QZ-related, however, this exact error message has results like the spice works forum post as first results (just a quick Google Search), which is why we ask to perform all troubleshooting steps provided.

I made a specific note about the paper size.  This type of control isn't available in other applications (where you can specify the media size this precisely in 'mm').  For this reason, comparing results to other applications is a bit misleading as more granular control is being requested from QZ.


Assuming you've tried everything with the spice works article, I would suggest testing with our demo page and printing the PDF without specifying page size.  (Note, before testing this, this should include a full reboot per spice works article instructions).  https://demo.qz.io

The reasons we believe Ricoh is to blame here is because Ricoh and HP have some known buggy behavior with their printer drivers, and these bugs should NOT be blamed on small software vendors as we're downstream from these buggy drivers.

Please work to identify exactly what works and what does so that this can be narrowed down.  We won't be buying this Ricoh hardware on a whim, but if we can find some commonality for what works, we might be to identify what breaks it.

Lite Finocchiaro

unread,
Apr 13, 2022, 12:06:38 PM4/13/22
to Tres Finocchiaro, Anand Hirulkar, qz-print
Anand:

In addition to Tres' comments, I would recommend printing the same PDF from both sources, but changing the port on the driver to print to a flat file.

The differences in the flat file will reveal what is likely causing the error on the printer side.

We still recommend escalating this with Ricoh, as it is printer-specific, and we have not been able to find much information on this particular error.

Kind regards,


--
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.
Reply all
Reply to author
Forward
0 new messages