New issue
Advanced search Search tips

Issue 806746 link

Starred by 5 users

Issue metadata

Status: Fixed
Owner:
Closed: Mar 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

Chrome printing bug: Printing from chrome only shows images and no text

Project Member Reported by marcore@chromium.org, Jan 29 2018

Issue description

as per https://bugs.chromium.org/p/chromium/issues/detail?id=788864#c19 I'm opening a new bug:

Chrome version: 63.0.3239.132 (Official Build) (64-bit) (cohort: Stable)
64.0.3282.119 (Official Build) (64-bit) (cohort: 64_119_win)
66.0.3334.0 (Official Build) canary (64-bit) (cohort: Clang-64)
OS version: Windows 10  64 Bit
Case#: 14497031

Description: printing some files with text & images the text is not printed
Test file: https://drive.google.com/open?id=1_3XSq4L7uUgXlqicZdS3beDVK6sX_UhC 


Steps to reproduce: 
print https://drive.google.com/open?id=1_3XSq4L7uUgXlqicZdS3beDVK6sX_UhC 
Current Behavior / Reproduction: 
print to HP color laserjet 2800 Series PS in incognito mode:
https://drive.google.com/open?id=1sEccmEfaphhnyTBlTkZ_K5Rb1jZKgzWQ
Expected Behavior: 
to print the text under the picture
https://drive.google.com/open?id=1yYjHUgtTlDZfHD8fwHp9N7qTJnCPiIGx

 
Owner: thestig@chromium.org
Hi, could you please help triage this issue ?

Labels: OS-Windows
Cc: jmukthavaram@chromium.org
Labels: Needs-Feedback Needs-Milestone
Tested #788864 issue on chrome latest stable-64.0.3282.140 & seems issue got fixed in latest versions.
Observation:
-----------
Tested this issue with clean profile & also Incognito mode after installing PDF Viewer extension. No issue observed.

Unable to reproduce the issue on Windows 7 & windows 10 using chrome reported version-63.0.3239.132 ,latest stable-64.0.3282.140 & Canary-66.0.3339.0 with "Ricoh-Aficio MP C2551" printer as "HP color laserjet 2800 Series PS " printer is not available.

PDF (images along with text)printed successfully with corp account & no issue observed.Tested this issue with clean profile & also Incognito mode.

marcore@, Please test the issue on chrome latest version with clean profile & let us know your observations.
Thanks..!

I've tried with 64.0.3282.140 (Official Build) (64-bit) (cohort: 64_140_win) 
with a clean profile the issue is still present
I've configured a printer with FILE: as destination port and "HP Color LaserJet 2800 PS" as driver on a Windows Server 2008 R2 Datacenter.
The output file, which is viewable with Document Viewer on linux, is here: https://drive.google.com/open?id=1iL5y_Ve-uXZ313q5x_5dAU9dcvQDRGEq
Also Google Drive is able to display it.


Labels: TE-NeedsTriageFromMTV
Thanks for the reply.
As india team do not have "HP Color LaserJet 2800 PS" printer, could some one from MTV team please take a look into it.Adding 'TE-NeedsTriageFromMTV' to triage further.


Comment 6 by dsid...@gmail.com, Feb 7 2018

Confirm issue with Chrome 63.0.3239.132 (Official Build) (64-bit) on Windows 10 Enterprise Version 1607 (Build 14393.1944) using Remote Desktop VDi. HP Universal Printer Driver PS v6.5.0. Printing is fine with Adober Reader DC.
Were back to having issues with Chrome 64 and printing pdf. If we save file and open in acrobat we can print fine. This same issue came in 62 and was correct in 63...Some of my users are on 63 and they print the same pdf as 64...64 looks Ok on screen but prints garbage...I wish they could keep this stuff fixed...Frustrates a lot of users. 
Labels: -Pri-3 Pri-2
Comment 7 - can you open a different bug with details on what PDFs you are seeing the problem with and what printer you are using? The original reporter says that this bug occurs in Chrome 63, so you are likely seeing a different bug with similar symptoms.

I can reproduce this on Stable 63.0.3239.132 using an HP LaserJet Pro 400 M401dne with the HP Universal PS driver, so can investigate. In the mean time, there is a workaround for anyone having this issue: if you go to chrome://flags and search for "Disable PostScript Printing", and change the setting to "Enabled", this document prints with text again.
Labels: -Needs-Feedback
Owner: rbpotter@chromium.org
Status: Assigned (was: Untriaged)
Status: Started (was: Assigned)
This document uses negative font sizes, which we prevented from going through to printers in the fix for  bug 767343 , which was about printers failing to print and spitting out PS errors when font size was zero. Looks like we need to check the absolute value of the font size, rather than blocking all font sizes <= 0.
Project Member

Comment 11 by bugdroid1@chromium.org, Feb 14 2018

The following revision refers to this bug:
  https://pdfium.googlesource.com/pdfium/+/2f68cb53f5938e2dd572db79fc5689c987cb350d

commit 2f68cb53f5938e2dd572db79fc5689c987cb350d
Author: rbpotter <rbpotter@chromium.org>
Date: Wed Feb 14 01:35:53 2018

Pdfium: Allow negative font sizes for PostScript printing

Bug:  chromium:806746 
Change-Id: I0b642c457c55d828dd48988eadfc5fa964de1216
Reviewed-on: https://pdfium-review.googlesource.com/26630
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Rebekah Potter <rbpotter@chromium.org>

[modify] https://crrev.com/2f68cb53f5938e2dd572db79fc5689c987cb350d/core/fxge/win32/cfx_psrenderer.cpp

Cc: msnoxell@chromium.org
The fix in comment 11 landed in Canary 66.0.3348.0. Tested this morning with the HP Postscript printer and Windows 10, and the issue appears to be resolved here. If possible, please check on Canary to confirm that this is also working for you.
Labels: Merge-Request-65
Requesting merge to M-65 for the change in comment 11. Change is small and should be safe, and this issue has a high impact on users with postscript printers who are printing certain types of documents (see comment 10 for explanation).
Project Member

Comment 15 by sheriffbot@chromium.org, Feb 15 2018

Labels: -Merge-Request-65 Merge-Review-65 Hotlist-Merge-Review
This bug requires manual review: M65 has already been promoted to the beta branch, so this requires manual review
Please contact the milestone owner if you have questions.
Owners: cmasso@(Android), cmasso@(iOS), bhthompson@(ChromeOS), govind@(Desktop)

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: -Merge-Review-65 Merge-Approved-65
Approving merge to M65 branch 3325 based on comment #14. Please merge ASAP. Thank you.
Project Member

Comment 17 by bugdroid1@chromium.org, Feb 15 2018

Labels: -merge-approved-65 merge-merged-3325
The following revision refers to this bug:
  https://pdfium.googlesource.com/pdfium/+/6d69dfca14621c907ca9d6c6bd3d3a5d4428e85b

commit 6d69dfca14621c907ca9d6c6bd3d3a5d4428e85b
Author: Lei Zhang <thestig@chromium.org>
Date: Thu Feb 15 23:37:17 2018

M65: Allow negative font sizes for PostScript printing

Bug:  chromium:806746 
TBR: rbpotter@chromium.org
Change-Id: I0b642c457c55d828dd48988eadfc5fa964de1216
Reviewed-on: https://pdfium-review.googlesource.com/26630
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Rebekah Potter <rbpotter@chromium.org>
(cherry picked from commit 2f68cb53f5938e2dd572db79fc5689c987cb350d)
Reviewed-on: https://pdfium-review.googlesource.com/26992

[modify] https://crrev.com/6d69dfca14621c907ca9d6c6bd3d3a5d4428e85b/core/fxge/win32/cfx_psrenderer.cpp

Labels: -Hotlist-Merge-Review -Needs-Milestone M-65 M-66
Status: Fixed (was: Started)
Project Member

Comment 20 by bugdroid1@chromium.org, Apr 4 2018

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

commit 18655670691d26f33e8bd1e271a0e6643562972e
Author: Lei Zhang <thestig@chromium.org>
Date: Wed Apr 04 01:57:26 2018

Add regression test for  bug 806746 .

Make sure there is text output when converting from PDF to PS for text
with negative size, which should be rendered rotated 180 degrees with
respect to the origin.

BUG= 806746 , 827748 

Change-Id: Ia214f25f8fdb945ecb5a046e07313e3237b2cf84
Reviewed-on: https://chromium-review.googlesource.com/989424
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Rebekah Potter <rbpotter@chromium.org>
Cr-Commit-Position: refs/heads/master@{#547940}
[modify] https://crrev.com/18655670691d26f33e8bd1e271a0e6643562972e/chrome/browser/printing/pdf_to_emf_converter_browsertest.cc
[add] https://crrev.com/18655670691d26f33e8bd1e271a0e6643562972e/chrome/test/data/printing/bug_806746.emf
[add] https://crrev.com/18655670691d26f33e8bd1e271a0e6643562972e/chrome/test/data/printing/bug_806746.pdf

Sign in to add a comment