LG-7180: Fix printed appearance of Barcode#6732
Conversation
**Why**: Since apparently table cell background colors are made transparent in default printing behavior, whereas cell border coloring is not. changelog: Upcoming Features, In-person proofing, Fix barcode appearing as invisible when printed
|
What about using SVG output from the barby gem? |
We previously used the PNG printer, but switched to the table printer when using it also in email templates since neither data URI images nor embedded SVG have good support in email clients (more context at #6580 (comment)). We could consider switching how we render the barcode based on the context, but I was hoping to avoid maintaining support for multiple implementations. |
that seems reasonable, esp if we have to maintain the CSS styles for the emailed ones anyways |
tomas-nava
left a comment
There was a problem hiding this comment.
approve!
I compared the before & after barcodes to each other; they look identical. I checked the web & email barcodes in this online barcode reader and they read correctly. I even printed a paper copy of the barcode, took a picture with my phone, and uploaded that to the barcode reader, and it read correctly.
Why: Since apparently table cell background colors are made transparent in default printing behavior, whereas cell border coloring is not.
Testing instructions:
Screenshots:
Browser content (visually unchanged):
Printed content:
(the appearance in the preview seems to be affected by scaling)