Problem on barcode printing

1,501 views
Skip to first unread message

Agência Vmc

unread,
Jun 1, 2017, 2:02:37 AM6/1/17
to Chromium-discuss
Hi, im having a problem when i try to print barcodes using google chrome.
In the browser i see the correct rendering of the barcode, but in the print preview and in the printed sheet the barcode are wrong.

This is the correct barcode, i see this in the browser:

This is the same barcode in the print preview:


This is a piece of the code for render the barcode:


How i say, in the browser the barcode is perfect, but in the print preview are wrong. Like if the print preview are changing my <img> proprietes or adding some css?

I test this in mozilla firefox, and the print are ok, like in the browser. The problem happends just with google chrome.

Any idea for solve this problem? Thanks!

PhistucK

unread,
Jun 1, 2017, 2:16:27 AM6/1/17
to agenc...@gmail.com, Chromium-discuss
Does the actual printed page show the same issue?


PhistucK

--
--
Chromium Discussion mailing list: chromium...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-discuss

---
You received this message because you are subscribed to the Google Groups "Chromium-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-discuss+unsubscribe@chromium.org.

Wei Li

unread,
Jun 1, 2017, 6:49:12 PM6/1/17
to Chromium-discuss
It looks a bit unusual for the barcode images to have width 1 or 3. Is it the first image shown actual p.png or b.png? I tried with
 the first png image with proper width, both print preview and printed page show correct results. Does changing the width help?

If the problem persists, can you pls file a bug at https://bugs.chromium.org/p/chromium/issues/entry with the image and webpage
attached, so that we can follow along?

PhistucK

unread,
Jun 2, 2017, 3:55:09 AM6/2/17
to we...@chromium.org, Chromium-discuss
I think p.png is white (padding) and b.png is black. The barcode is constructed using many little images of black and padding.


PhistucK

--
Reply all
Reply to author
Forward
0 new messages