Receipt printing in Chrome - Bad quality

7.1k Views Asked by At

When i try to print a receipt in Google Chrome the quality of the text is bad. (its dotted/rasterized) and to wide for the receipt.

I use Google Chrome 39.0.2171.71 m With a Star TSP100 receipt printer with 80 mm receipt.

The receipt printer is as default set on 72xreceipt. It does cut of at the right lenght.

The text looks dotted/rasterized ... enter image description here

This is a problem within Chrome, because everything works fine in Firefox. only my POS works faster on Chrome. Thats why i want to use chrome.

The print dialog says black-white printing.

Does anyone know how to fix this?

2

There are 2 best solutions below

0
On

Set font "color:black" in your stylesheet, eg:

<style rel="stylesheet" media="print">
...
body {color:black;}
...
</style>

I had the exact same problem and this was the last thing that came to my mind and it worked.

2
On

Google Chrome just supports graphics printing, this may cause some quality issues when dealing with receipt and text only printers. Maybe changing font type and size helps a bit. I've resolved this creating a native service that handles the printing logic since java applet is not supported now by default in Chrome. Good luck.