New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 738950 link

Starred by 5 users

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug-Regression



Sign in to add a comment

issues printing roll paper from Chrome

Reported by josuevu...@gmail.com, Jul 3 2017

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36

Steps to reproduce the problem:
1) Print the pdf file attached from regression
2) print the pdf file attached from chrome new version
3) see the difference between both.

What is the expected behavior?
the printing works as well as version Version 56.0.2924.87 : (2017/02/01)

What went wrong?
the font gets a little bit smaller than the regression test

Did this work before? Yes Version 56.0.2924.87 : (2017/02/01)

Does this work in other browsers? Yes

Chrome version: 59.0.3071.115  Channel: stable
OS Version: 10.0
Flash Version: 

the printer model is epson M188A
 
regression.jpg
2.4 MB View Download
chrome (2).jpg
2.5 MB View Download
Test.pdf
248 KB Download
Components: -Blink>JavaScript Internals>Printing
There are a few field in the print preview dialog - "Scale" and "Fit to page" - did you try changing them?
Yes, we did. We downgraded the chrome browser and worked.

Please help us to resolve this issue,

Thanks in advanced
Does not reproduce on HP LaserJetPro 400, a Zebra GK420d label printer, or the XPS Document Writer virtual printer. In all 3 cases the printouts look the same between 56 and 59. It may be impossible to reproduce this without this specific printer.

I installed the driver on Windows 10 and it appears this printer is rectangular DPI only. Rectangular DPI printing is not currently supported in Chrome and has not ever been supported, including in 56. Given that this issue does not seem to reproduce on any other printers, it is possible this may be part of the problem.
But, definitely there was a change on something because we're experiencing a issue on this with this printer epson M188A the font gets smaller but before that update it was fine, some advice?
Labels: TE-NeedsTriageFromMTV
Could someone from MTV look into this issue as we don’t have the reported printer 'epson M188A'. Adding "TE-NeedsTriageFromMTV" label for further triage.

Thanks.
Cc: thestig@chromium.org jbanavatu@chromium.org
 Issue 753484  has been merged into this issue.
Cc: pchalla@chromium.org
 Issue 757164  has been merged into this issue.
Hi there,

Any update about this issue?
We just got a printer that takes paper rolls for testing. It's assembled but we haven't tried it out yet.
Ok ok, thanks!! so keep waiting for some news!

Comment 12 by oem...@gmail.com, Sep 6 2017

Hi, 
Any update on this issue?
Thanks!
The issue continue
Labels: Needs-Feedback
Owner: rbpotter@chromium.org
Status: Assigned (was: Unconfirmed)
Looking into this now. The text printed for the document above still looks distorted to me on a Bixolon printer (roll paper, rectangular DPI) in Chrome 56, though it is larger, and the print preview appears to be incorrect in older versions (shows the document significantly cut off at the edges). It looks like that changed in Chrome 59. Does that match what everyone is seeing or is 57 or 58 also broken?

We may be able to land a quick fix solution soon that will hopefully increase the text size without going back to the old (incorrect) preview, but it will not fix the distortion issue that seems to have been around since at least 56. That will take more time.

Some additional information that would be helpful to ensure we are testing the same things you are:
- Are you printing from Print Preview or the system dialog?
- What paper size and DPI settings are you using?
- If printing from Print Preview, are you checking "Fit to Page"? If not, are you scaling the document at all or leaving the scaling at the default "100" value?
- Any other example documents that are not printing correctly that you can share would be helpful
Project Member

Comment 15 by bugdroid1@chromium.org, Sep 11 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/2fe35484825f4a96eb9e022fdc6271d5960de3d4

commit 2fe35484825f4a96eb9e022fdc6271d5960de3d4
Author: rbpotter <rbpotter@chromium.org>
Date: Mon Sep 11 22:53:41 2017

Printing: Try to fix small text printing on rectangular DPI printers

Rectangular DPI is not fully supported in Chrome but some printers use
it. On these printers, using the maximum rather than the minimum of the
2 DPI dimensions for computing printable area prevents text printing
too small and restores the behavior before
https://codereview.chromium.org/2795453002.

Bug: 738950
Change-Id: Idf0ae0f32987343fe9100b8a15ad139e431f0570
Reviewed-on: https://chromium-review.googlesource.com/661381
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Rebekah Potter <rbpotter@chromium.org>
Cr-Commit-Position: refs/heads/master@{#501074}
[modify] https://crrev.com/2fe35484825f4a96eb9e022fdc6271d5960de3d4/printing/print_settings.h

Also, can you see if this looks any better in the current Chrome Canary (63.0.3213.0)? Based on our testing it looks like that should have restored the font size to the same as it was in M56; please check if it works for you or if you are seeing something different.
I have tested in this version of Canary and it's the same issue.

answer to your question as follow.

- Are you printing from Print Preview or the system dialog?
From the print preview.

- What paper size and DPI settings are you using?
roll paper 76x297mm and 160x144pdi

- If printing from Print Preview, are you checking "Fit to Page"? If not, are you scaling the document at all or leaving the scaling at the default "100" value?
Yes I've set to fit to page option.

- Any other example documents that are not printing correctly that you can share would be helpful

attached you a file that we use to set up this test.

But the error still persists.
Thanks for the feedback. Any other users see any change with the new version? 

RE: comment 17, I tried the identical settings you describe with your linked file. The text size for me is slightly larger in Canary 63.0.3213.0 (please make sure your Canary version is that version or higher, or it will not have the change) than it is in current Stable (60). The printout from Canary looks like the image from the earlier version of Chrome linked above. So unfortunately we can no longer reproduce the problem even with a rectangular DPI roll paper printer on the same settings as described. If other users see a change from Stable to Canary, maybe there are two different bugs here.
Project Member

Comment 19 by bugdroid1@chromium.org, Jan 25 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/e33e8e6216292d57d031a703402957e786e18b0b

commit e33e8e6216292d57d031a703402957e786e18b0b
Author: rbpotter <rbpotter@chromium.org>
Date: Thu Jan 25 01:10:33 2018

Printing: Make rectangular DPI printers work

Some printers use rectangular DPI only. Not accounting for this results
in distorted printouts when printing from Chrome. Send rectangular DPI
to Pdfium so that these printers can print correctly.

Bug: 738950
Cq-Include-Trybots: master.tryserver.chromium.linux:closure_compilation
Change-Id: I0b9e90905b7fefc38ca1d73d176d94e8e4a3b727
Reviewed-on: https://chromium-review.googlesource.com/664249
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Reviewed-by: Jianzhou Feng <jzfeng@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Rebekah Potter <rbpotter@chromium.org>
Cr-Commit-Position: refs/heads/master@{#531769}
[modify] https://crrev.com/e33e8e6216292d57d031a703402957e786e18b0b/chrome/browser/printing/pdf_to_emf_converter_browsertest.cc
[modify] https://crrev.com/e33e8e6216292d57d031a703402957e786e18b0b/chrome/browser/printing/print_job.cc
[modify] https://crrev.com/e33e8e6216292d57d031a703402957e786e18b0b/chrome/browser/printing/print_preview_pdf_generated_browsertest.cc
[modify] https://crrev.com/e33e8e6216292d57d031a703402957e786e18b0b/chrome/browser/printing/printing_message_filter.cc
[modify] https://crrev.com/e33e8e6216292d57d031a703402957e786e18b0b/chrome/browser/printing/pwg_raster_converter.cc
[modify] https://crrev.com/e33e8e6216292d57d031a703402957e786e18b0b/chrome/browser/printing/pwg_raster_converter_browsertest.cc
[modify] https://crrev.com/e33e8e6216292d57d031a703402957e786e18b0b/chrome/browser/ui/webui/print_preview/extension_printer_handler_unittest.cc
[modify] https://crrev.com/e33e8e6216292d57d031a703402957e786e18b0b/chrome/service/cloud_print/print_system_win.cc
[modify] https://crrev.com/e33e8e6216292d57d031a703402957e786e18b0b/chrome/services/printing/pdf_to_emf_converter.cc
[modify] https://crrev.com/e33e8e6216292d57d031a703402957e786e18b0b/chrome/services/printing/pdf_to_pwg_raster_converter.cc
[modify] https://crrev.com/e33e8e6216292d57d031a703402957e786e18b0b/chrome/services/printing/public/interfaces/pdf_render_settings.mojom
[modify] https://crrev.com/e33e8e6216292d57d031a703402957e786e18b0b/chrome/services/printing/public/interfaces/pdf_render_settings_struct_traits.cc
[modify] https://crrev.com/e33e8e6216292d57d031a703402957e786e18b0b/chrome/services/printing/public/interfaces/pdf_render_settings_struct_traits.h
[modify] https://crrev.com/e33e8e6216292d57d031a703402957e786e18b0b/components/printing/browser/print_manager_utils.cc
[modify] https://crrev.com/e33e8e6216292d57d031a703402957e786e18b0b/components/printing/common/print_messages.cc
[modify] https://crrev.com/e33e8e6216292d57d031a703402957e786e18b0b/components/printing/common/print_messages.h
[modify] https://crrev.com/e33e8e6216292d57d031a703402957e786e18b0b/components/printing/renderer/print_render_frame_helper.cc
[modify] https://crrev.com/e33e8e6216292d57d031a703402957e786e18b0b/components/printing/test/mock_printer.cc
[modify] https://crrev.com/e33e8e6216292d57d031a703402957e786e18b0b/headless/lib/headless_web_contents_browsertest.cc
[modify] https://crrev.com/e33e8e6216292d57d031a703402957e786e18b0b/pdf/pdf.cc
[modify] https://crrev.com/e33e8e6216292d57d031a703402957e786e18b0b/pdf/pdf.h
[modify] https://crrev.com/e33e8e6216292d57d031a703402957e786e18b0b/pdf/pdfium/pdfium_engine.cc
[modify] https://crrev.com/e33e8e6216292d57d031a703402957e786e18b0b/printing/pdf_render_settings.h
[modify] https://crrev.com/e33e8e6216292d57d031a703402957e786e18b0b/printing/print_settings.h

Sign in to add a comment