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

Issue 739333 link

Starred by 2 users

Issue metadata

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



Sign in to add a comment

The chrome doesn't work the black-white option in print

Reported by heeyoun....@samsung.com, Jul 5 2017

Issue description

Steps to reproduce the problem:
1. chrome -> print
2. change the color option(color -> Black & White)
3. the preview still got a color

What is the expected behavior?
change the preview's color to monochrome.

What went wrong?
The chrome doesn't work for changing the color option in android.

Did this work before? N/A 

Chrome version: 59.0.3071.115  Channel: stable
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)
Flash Version:
 
Cc: ram...@chromium.org
Labels: triage-te
Labels: -triage-te Needs-Feedback
Device: Samsung Galaxy S5 /MMB29M (6.0.1)
Printer: HP Pagewide 452dW
Chrome version: 59.0.3071.125

1. Launched Chrome stable.
2. Visit http://wwww.cnn.com  web site
3. Select share from settings, printer, changed to Black and white.

Preview: Monochrome as expected.

Please upgrade to latest release from playstore and see if you can repro the issue.

Thanks
Device : Samsung Galaxy S8 (android 7.0)
Chrome version : 59.0.3071.125

still reproducible.
Project Member

Comment 4 by sheriffbot@chromium.org, Jul 7 2017

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding requester "ramine@chromium.org" to the cc list and removing "Needs-Feedback" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Components: -UI Internals>Printing
Labels: M-60
Seems to be specific to Samsung Galaxy S8/ and repro with Chrome stable '59.0.3071.125'.

Thanks for information.
Components: UI>Browser>PrintPreview
Status: Untriaged (was: Unconfirmed)
Able to repro with '56.0.2924.87' chrome shipped with device.
Cc: ctzsm@chromium.org dgn@chromium.org

Comment 8 by ctzsm@chromium.org, Jul 7 2017

Labels: Needs-Feedback
ramine@, could you please give a screenshot of result you described in comment 2?
 If the printer is "Save as PDF", I never seen B&W preview. You are seeing B&W preview might be because you have "HP Pagewide 452dW" as printer.

Also want to confirm with heeyoun.lee@, are you using "Save as PDF" printer?
Please find logs and screen record at:

http://go/chrome-androidlogs1/7/739333

Added Files:
PrintPreview.log
printPreview.mp4


Cc: -ctzsm@chromium.org
Owner: ctzsm@chromium.org
Status: Assigned (was: Untriaged)
ramine@, thanks for providing log and video!

I am a bit confused, in comment 2 you mentioned "Preview: Monochrome as expected.", but in the video, it shows colored preview, so this is not specific to Samsung devices right? Also, I can reproduce this with Nexus 6P with multiple version of chrome.
This bug was specific to S8 as submitter explained and did not repro on Galaxy S5. Have not check on Nexus 6P.

Comment 12 by ctzsm@chromium.org, Jul 12 2017

ramine@, by checking the code, it is not possible that did not repro on Galaxy S5, we are not using the black and white/color parameter from Android at all, it will always show colored preview.

Also in the video you uploaded, it is still showing colored preview after change option from color to black and white.

Comment 13 by ctzsm@chromium.org, Jul 12 2017

Cc: thestig@chromium.org
thestig@, dgn@, by checking linux chrome, we are not showing "black and white" option when choose "Save as PDF". But on Android, "Save as PDF" printer is set to have the capability to print in both "color" and "black and white" mode by default.

So I am thinking in two ways:
1) Disable "black and white" option for "Save as PDF" printer.
2) Support "black and white" option.

For 1), by a check on Android side, I didn't see we can disable this option, I might missed it, will check it later.

For 2) color/b&w are handled by printing preview code, printing itself doesn't seem to have the option, so it evolves more fragmentation to other platforms.

thestig@, dgn@, any thoughts? Correct me if I missed something.

Comment 14 by dgn@chromium.org, Jul 12 2017

On Pixel running O Preview and Chrome Canary (61.0.3154.3) I don't have the option to switch to black and white. Nexus 5 on L and M still shows the option. So maybe the OS finally starts respecting Chrome's B&W preference from O? In that case I don't think we want to add B&W support for PDF on Android.

Comment 15 by ctzsm@chromium.org, Jul 12 2017

dgn@, forgot to mention that we don't have B&W option for "Save to Google Drive" but we do have that for "Save as PDF", you might want to make sure the printer is "Save as PDF".

Comment 16 by dgn@chromium.org, Jul 13 2017

Oh you're right. Anyway, that means there should be a way to specify this for the framework. 

There is this class: https://developer.android.com/reference/android/print/PrinterCapabilitiesInfo.Builder.html

We don't seem to use it anywhere.

Comment 17 by ctzsm@chromium.org, Jul 21 2017

It seems there is no way to control capabilities of printer. 

PrinterCapabilitiesInfo is used for a printer to tell Android framework its capabilities, it is initialized for a printer and won't be changed later.

Most likely we have no way to control UI, if we want to respect this kind of options, we need to generate black & white PDF file IMO.

dgn@, thestig@, any thoughts?

Comment 18 by dgn@chromium.org, Jul 25 2017

Sounds good, I didn't realise B&W preview doesn't work at all even on regular printers. We should support it at some point, yes.
Cc: halcanary@chromium.org
Maybe halcanary@ has an opinion re: comment 17. I recently ran into a similar problem with Windows printing. I solved that in r550078, where the color PDF is being rendered to grayscale later in Windows-specific code.

Comment 20 by ctzsm@chromium.org, Apr 16 2018

Cc: changwan@chromium.org
Thanks Lei for the info!

Changwan, another printing related task for WebView/Chrome for Android to consider.
Yup, sounds like an important use case that needs fixing. ctzsm@, could you try to set the milestone for this task? Thanks.

Sign in to add a comment