Printing full page becomes 1/4 of the page using Brother Printer

71 views
Skip to first unread message

Kelven Chan

unread,
May 6, 2021, 4:06:53 AM5/6/21
to qz-print
Hi,

I have two printers in my office, 
when I am printing the document using Printer A (Brother series MFC-L6900DW ), it print normally, everything is on the whole A4 paper.

However, when I am printing the document using Printer B (Brother series DCP-L2550DW),
it compress the whole stuff into 1/4 of the A4 paper as attached.

Dose anyone have came cross this or have any idea which config should I changed?

002.png

Tres Finocchiaro

unread,
May 6, 2021, 11:30:47 AM5/6/21
to Kelven Chan, qz-print
This is usually DPI related and a workaround is to set the density to a known good value for the offending printer.

We did recently have an issue with certain rasterized print jobs: https://github.com/qzind/tray/issues/787

To see if this fixes your issue you can test this installer: https://github.com/tresf/tray/releases/tag/v2.1.3-RC

Note, the above installer will be removed when 2.1.3 is released.

However the best way to handle these types of issues is to share your logs so we can see what's being printed and what QZ Tray thinks the DPI is of the offending printer.


--
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/a093e6df-2741-4040-9a84-059d547a57c1n%40googlegroups.com.

Kelven Chan

unread,
May 6, 2021, 11:43:49 AM5/6/21
to qz-print
Hello,

is density you mean is an option in QZ tray or an option in Printer side?

do you mean QZ tray log or any log I can provide for any investigation?

tres.fin...@gmail.com 在 2021年5月6日 星期四下午11:30:47 [UTC+8] 的信中寫道:

Tres Finocchiaro

unread,
May 6, 2021, 12:22:49 PM5/6/21
to Kelven Chan, qz-print
QZ-side for density... 


QZ-logs only, they will have the content and setting so we can investigate and possibly reproduce.




Kelven Chan

unread,
May 6, 2021, 3:12:41 PM5/6/21
to qz-print
Hi,

In fact, we have tried to change the red area (as in attached image) to 300 dpi, 600 dpi and 1200 dpi before I post this question, 
(Sorry that it is in traditional chinese characters, but in english, the title of the red area can be translated as "Resolution")
is it the config that you mean density is (or QZ tray config is controlling)?

Let me send you the log tmr when I back to office !

Thank you for your help.
003.png

tres.fin...@gmail.com 在 2021年5月7日 星期五上午12:22:49 [UTC+8] 的信中寫道:

Tres Finocchiaro

unread,
May 6, 2021, 4:04:35 PM5/6/21
to Kelven Chan, qz-print
Right, but not all drivers report this properly, hence https://github.com/qzind/tray/issues/787

Kelven Chan

unread,
May 11, 2021, 3:19:54 AM5/11/21
to qz-print
Hello,

is the following the log you may need for investigation ?

2021-05-11 15:04:12,107 [INFO] Starting QZ Tray 2.1.3
2021-05-11 15:04:12,154 [WARN] Failed to retrieve QZ CRL, skipping CRL check
2021-05-11 15:04:12,154 [DEBUG] Adding internal CA certificate: CN=qzindustries.com, O=QZ Industries, LLC (8ef2c0b2fe3f75754245b3fb9d54c0caa1b46bb3)
2021-05-11 15:04:12,154 [INFO] Loading CRL from https://crl.qz.io
2021-05-11 15:04:12,539 [INFO] Successfully loaded 2 CRL entries from https://crl.qz.io
2021-05-11 15:04:12,664 [WARN] Monocle engine was not detected
2021-05-11 15:04:12,708 [DEBUG] Checking for .autostart preference in user directory C:\Users\my-pc\AppData\Roaming\qz...
2021-05-11 15:04:12,708 [DEBUG] Checking for .autostart preference in shared directory C:\ProgramData\qz...
2021-05-11 15:04:13,185 [DEBUG] Checking for a running instance of QZ Tray on port 8283
2021-05-11 15:04:13,217 [DEBUG] Checking for a running instance of QZ Tray on port 8384
2021-05-11 15:04:13,232 [DEBUG] Checking for a running instance of QZ Tray on port 8485
2021-05-11 15:04:13,922 [INFO] Server started on port(s) 8182, 8181
2021-05-11 15:04:23,471 [INFO] Connection opened from /0:0:0:0:0:0:0:1:52105 on socket port 8181
2021-05-11 15:04:23,477 [DEBUG] Message: {"certificate":"-----BEGIN CERTIFICATE-----\n            -----END CERTIFICATE-----","promise":{},"timestamp":1620716663471,"uid":"9z7zxh","signAlgorithm":"SHA1","position":{"x":683,"y":364}}
2021-05-11 15:04:23,480 [WARN] Problem building certificate chain (normal if multiple CAs are in use)
2021-05-11 15:04:23,480 [DEBUG] Received new certificate from connection through 52105
2021-05-11 15:04:23,481 [DEBUG] Calculated dialog centered at: java.awt.Point[x=540,y=276]
2021-05-11 15:04:23,532 [DEBUG] Message: {"call":"getVersion","promise":{},"signature":"s...==","timestamp":1620716663471,"uid":"866swk","signAlgorithm":"SHA1","position":{"x":683,"y":364}}
2021-05-11 15:04:37,705 [INFO] Allowed lawrence tang to connect to QZ Tray
2021-05-11 15:04:37,751 [DEBUG] Message: {"call":"printers.find","promise":{},"params":{"query":"Vita_A5"},"signature":"fOXT...==","timestamp":1620716677707,"uid":"uks5bc","signAlgorithm":"SHA1","position":{"x":683,"y":364}}
2021-05-11 15:04:37,757 [DEBUG] Calculated dialog centered at: java.awt.Point[x=527,y=276]
2021-05-11 15:04:38,225 [INFO] Allowed lawrence tang to access connected printers
2021-05-11 15:04:38,227 [DEBUG] Searching for PrintService matching Printer_A5
2021-05-11 15:04:39,024 [DEBUG] Found 9 printers
2021-05-11 15:04:39,024 [DEBUG] Found match: Printer_A5
2021-05-11 15:04:39,082 [DEBUG] Message: {"call":"print","promise":{},"params":{"printer":{"name":"Vita_A5"},"options":{"colorType":"color","copies":1,"density":0,"duplex":false,"fallbackDensity":null,"interpolation":"bicubic","jobName":null,"legacy":false,"margins":{"top":0,"right":0,"bottom":0,"left":0},"orientation":"portrait","paperThickness":null,"printerTray":null,"rasterize":false,"rotation":0,"scaleContent":false,"size":null,"units":"mm","altPrinting":false,"encoding":"UTF-8","endOfDoc":null,"perSpool":1,"options":{"pageWidth":148,"pageHeight":210}},"data":[{"type":"pixel","format":"html","flavor":"plain","data":"<html>\n  <head>\n    <title>Invoice</title>\n\t<meta charset=\"UTF-8\">\n  </head>\n  <body style=\"margin:0px;\">\n\t<div>\n\t\n    <div style=\"font-size: 12px;margin: 0px 20px;\">\n      <div style=\"text-align: center;font-weight: 700;font-size: 12px;margin-top: 30px;\">Invoice</div>\n      <div style=\"display:inline-block;width: 100%;margin-top:20px;\">\n\t  \n\t\t  <div style=\"display: flex; justify-content: space-between;\">\n\t\t\t<div style=\"display: grid; grid-template-columns: auto 1fr; \">\n\t\t\t  <div>Code </div>\n\t\t\t  <div> : 00003</div>\n\t\t\t  <div></div>\n\t\t\t  <div> : Hello </div>\n\t\t\t  <div> Code </div>\n\t\t\t  <div> : CP00004</div>\n\t\t\t</div>\n\t\t\t<div\n\t\t\t\tstyle=\"float:right\"\n\t\t\t>\n\t\t\t\tDate : 11 May, 2021\n\t\t\t</div>\n\t\t  </div>\n      </div>\n      <div\n        style=\"margin-top: 25px;\"\n      >\n        Chan \n      </div>\n\t  <div style=\"margin-top: 25px;\">\n\t\t <div style=\"width: 100%; display:inline-block;\">\n      <div style=\"display: flex;justify-content: space-between;\n    align-items: baseline; border-bottom: solid 1px;\">\n        <div style=\"flex:2;font-weight: 700;\">\n          Items\n        </div>\n        <div style=\"flex: 1;text-align:right;font-weight: 700;\">\n          Fee\n        </div>\n        <div style=\"flex: 1;text-align:right;font-weight: 700;\">\n          dis\n        </div>\n        <div style=\"flex: 1;text-align:right;font-weight: 700;\">\n          a\n        </div>\n      </div>\n      <div style=\"display: flex;\n        justify-content: space-between;\n        align-items: baseline; border-bottom: solid 1px;\" >\n        <div style=\"flex: 2;\" >\n        Me\n        </div>\n    <div style=\"flex: 1;text-align: right;\">\n      123.00\n    </div>\n    <div style=\"flex: 1;text-align: right;\">\n      0.00\n    </div>\n    <div style=\"flex: 1;text-align: right;\">123.00</div>\n  </div>\n    </div>\n        <div\n\t\t  style=\"display: flex;justify-content: space-between;align-items: baseline;\"\n        >\n          <div\n            style=\"flex: 3;text-align:right;padding-top:5px;\"\n          >\n            t:\n          </div>\n          <div\n            style=\"flex:1;text-align:right;\"\n          >\n            130.00\n          </div>\n        </div>\n        <div\n\t\t  style=\"display: flex;justify-content: space-between;align-items: baseline;\"\n        >\n          <div\n            style=\"flex: 3;text-align:right;padding-top:5px;\"\n          >\n            p:\n          </div>\n          <div\n            style=\"flex:1;text-align:right;\"\n          >\n            130.00\n          </div>\n        </div>\n\t  </div>\n\t  <div style=\"margin-top: 25px;display:block;\">\n\t\t  <div style=\"width: 100%;display:inline-block;\">\n    <div style=\"display: flex;border-bottom: solid 1px;\">\n      <div style=\"flex:1;font-weight: 700;\">\n        Date\n      </div>\n      <div style=\"flex:1;font-weight: 700;\" >\n        od\n      </div>\n      <div style=\"flex:1;font-weight: 700;\" >\n        No.\n      </div>\n      <div style=\"flex:1;text-align:right;font-weight: 700;\" >\n        Paid\n      </div>\n    </div>\n     <div style=\"display: flex;\">\n            <div style=\"flex:1;\">\n                11 May, 2021\n            </div>\n              <div style=\"flex:1;\">Cash</div>\n              <div style=\"flex:1;\"></div>\n              <div style=\"flex:1; text-align: right;\">\n              130.00\n              </div>\n            </div>\n    <div style=\"display: flex;justify-content: space-between;\n      align-items: baseline;\" >\n      <div style=\"flex: 3;padding-top:5px;\" >\n      \n      </div>\n    </div>\n  </div>\n\t  </div>\n\t  <div style=\"margin-top: 25px;display:none;\"> \n\t\t  <div style=\"width: 100%;\">\n      <div style=\"display: flex;border-bottom: solid 1px;\">\n        <div style=\"flex:1;font-weight: 700;\" >\n        Item\n        </div>\n        <div style=\"flex:1;text-align:right;font-weight: 700;\" >\n        q\n        </div>\n        <div style=\"flex:1;font-weight: 700;\" >\n        </div>\n      </div>\n      \n    </div>\n\t  </div>\n      <div style=\"margin-top:40px;display: \n    none;\n    \">\n        <div >d:</div>\n        <div\n          style=\"font-weight: 500;\n\t\t\t\twhite-space: pre-line;\"\n        ></div>\n      </div>\n      <div style=\"margin-top: 10px;display: none;\">\n        <div>rem:</div>\n        <div\n          style=\"font-weight: 500;\n\t\t\t\twhite-space: pre-line;\"\n        ></div>\n      </div>\n    </div>\n\t<div style=\"font-size: 12px;margin: 0px 20px;\">\n\t\t<div style=\"width:150px;\n\tborder-bottom: 1px solid black;\n\tmargin-top:120px;\"></div>\n\t\t<div>123</div>\n\t\t<div>cen</div>\n\t</div>\n\t</div>\n  </body>\n</html>\n"}]},"signature":"d...==","timestamp":1620716679039,"uid":"ioh45b","signAlgorithm":"SHA1","position":{"x":683,"y":364}}
2021-05-11 15:04:39,088 [DEBUG] Calculated dialog centered at: java.awt.Point[x=546,y=276]
2021-05-11 15:04:43,757 [INFO] Allowed lawrence tang to print to Printer_A5
2021-05-11 15:04:43,792 [DEBUG] Allowing 1 simultaneous processors based on memory available (518 MB)
2021-05-11 15:04:43,797 [DEBUG] Using qz.printer.action.PrintHTML to print
2021-05-11 15:04:43,797 [DEBUG] Searching for PrintService matching Printer_A5
2021-05-11 15:04:43,798 [DEBUG] Found 9 printers
2021-05-11 15:04:43,798 [DEBUG] Found match: Printer_A5
2021-05-11 15:04:43,966 [DEBUG] Started JavaFX
2021-05-11 15:04:44,088 [INFO] WebKit version 610.1.0 detected
2021-05-11 15:04:44,224 [DEBUG] Attempting image capture
2021-05-11 15:04:44,265 [DEBUG] Parsed 1 html records
2021-05-11 15:04:44,807 [DEBUG] Paper area: 0,0:420,595
2021-05-11 15:04:44,808 [DEBUG] Document will be printed across 1 pages
2021-05-11 15:04:44,921 [INFO] Printing complete
2021-05-11 15:04:44,926 [INFO] Connection closed: 1005 - null
2021-05-11 15:04:44,926 [INFO] Closing all communication channels for lawrence tang
2021-05-11 15:05:12,069 [INFO] SSL certificate is still valid for 824 more days: 2023-08-13T06:59Z.  We'll make a new one automatically when needed.
2021-05-11 15:05:21,551 [WARN] The web socket server is no longer running
2021-05-11 15:05:25,360 [INFO] Try to find SSL properties file...


Thanks
tres.fin...@gmail.com 在 2021年5月7日 星期五上午4:04:35 [UTC+8] 的信中寫道:

Tres Finocchiaro

unread,
May 11, 2021, 1:37:37 PM5/11/21
to Kelven Chan, qz-print
Hi, I have tested QZ Tray with the Brother DCP-L2550DW driver.

Clicking "Printer Details" in the QZ tray demo page returns the following:

Name: Brother DCP-L2550DW series
Driver: Brother DCP-L2550DW series
Density: 600dpi
Connection: 192.168.x.x
Trays: Automatic-Feeder,top,manual

Also, the logs you've shared -- as well as my own -- don't show this printer having a problem with the 600 dpi being specified, so my initial instinct is that this is NOT density related, but instead page-size related.

You name your printer "A5", are you printing to A5 paper?  If so, you will need to tell the printer that. :)
  • Change the default page size in the printer driver
    General, Preferences
    -- AND --
    Advanced, Printing Defaults


  • If this does not work, please try to specify the page size to QZ Tray: https://qz.io/wiki/pixel#page-size
If A5 driver settings work for PDF but NOT for HTML, it may be a bug.  If this is the case you may file a bug report here: https://github.com/qzind/tray/issues/new

-Tres


Reply all
Reply to author
Forward
0 new messages