My favorites | Sign in
Project Home Downloads Wiki Issues
New issue   Search
for
  Advanced search   Search tips
Issue 82472: Chrome should automatically choose printing paper size, based on page css
6 people starred this issue and may be notified of changes. Back to list
 
Reported by project member jeffhar...@google.com, May 12, 2011
Chrome Version       : 12.0.742.30
OS Version: OS X 10.6.7

What steps will reproduce the problem?
1. Create a new Google doc (docs.google.com/document)
2. Add a couple pages of text
3. Change the orientation to landscape
4. Press Ctrl+P to trigger printing
5. Press the print button

What is the expected result?
The printed page should be in landscape

What happens instead?
The printed page is cutoff, because the paper is portrait, which doesn't match what Google Docs has laid out.

Please provide any additional information below. Attach a screenshot if
possible.
Docs is explicitly setting the printed page size using 
@media print {
  @ page size: 11in 8.5in
}

MSWord has the ability to take the dimensions of the document and default the printer to using those dimensions when the print dialog is called. It would be great if Chrome would default the printed paper size to match the page size that's declared in CSS

Attached is an example HTML page, if this feature request were granted, when you printed the attached page, it would default to being printed on landscape paper.
pagesize.html
290 bytes   View   Download
Comment 1 by thestig@chromium.org, May 12, 2011
(No comment was entered for this change.)
Status: Untriaged
Labels: -OS-Mac -Area-Undefined -Type-Bug OS-All Area-Internals Type-Feature Feature-Printing
Comment 2 by zen...@google.com, May 16, 2011
Similar issue happened when page setting was for "Tabloid (11x17)", bu attempted to print to US-Letter.
Comment 3 by vandebo@chromium.org, Sep 21, 2011
I hadn't seen this issue.  For some reason it works fine on Linux.  I'll take a look at this, maybe next week.
Status: Available
Labels: -OS-All OS-Windows OS-Mac
Comment 4 by vandebo@chromium.org, Oct 18, 2011
(No comment was entered for this change.)
Status: Fixed
Owner: vandebo@chromium.org
Labels: Mstone-17
Comment 5 by bugdro...@chromium.org, Oct 18, 2011
The following revision refers to this bug:
    http://src.chromium.org/viewvc/chrome?view=rev&revision=106160

------------------------------------------------------------------------
r106160 | vandebo@chromium.org | Tue Oct 18 16:06:35 PDT 2011

Changed paths:
 M http://src.chromium.org/viewvc/chrome/trunk/src/chrome/renderer/print_web_view_helper.cc?r1=106160&r2=106159&pathrev=106160

Fix print media page size by using the value we compute.

BUG=82472
TEST=NONE (in bug)


Review URL: http://codereview.chromium.org/8344016
------------------------------------------------------------------------
Comment 6 by jeffhar...@google.com, Oct 21, 2011
(No comment was entered for this change.)
Labels: Hotlist-GoogleApps
Comment 7 by vandebo@chromium.org, Oct 25, 2011
Karen, Jeff has requested that this fix be merged to M16.  It's a pretty small change.
Status: Started
Cc: kar...@google.com
Labels: -Mstone-17 Mstone-16 Merge-Requested
Comment 8 by vandebo@chromium.org, Oct 25, 2011
Oops... LaForge, what do you think?
Cc: -kar...@google.com lafo...@chromium.org
Comment 9 by lafo...@google.com, Oct 25, 2011
(No comment was entered for this change.)
Labels: -Merge-Requested Merge-Approved
Comment 10 by vandebo@chromium.org, Oct 25, 2011
(No comment was entered for this change.)
Status: Fixed
Labels: -Merge-Approved Merge-Merged
Comment 11 by bugdro...@chromium.org, Oct 25, 2011
The following revision refers to this bug:
    http://src.chromium.org/viewvc/chrome?view=rev&revision=107169

------------------------------------------------------------------------
r107169 | vandebo@chromium.org | Tue Oct 25 11:43:43 PDT 2011

Changed paths:
 M http://src.chromium.org/viewvc/chrome/branches/912/src/chrome/renderer/print_web_view_helper.cc?r1=107169&r2=107168&pathrev=107169

Merge 106160 - Fix print media page size by using the value we compute.

BUG=82472
TEST=NONE (in bug)


Review URL: http://codereview.chromium.org/8344016

TBR=thestig@chromium.org
Review URL: http://codereview.chromium.org/8393007
------------------------------------------------------------------------
Labels: merge-merged-912
Comment 12 by jeffreyc@google.com, Oct 25, 2011
Jeff Harris or Jeff Chang? :)
Comment 13 by vandebo@chromium.org, Oct 25, 2011
Sorry, I should have been more clear, Jeff Harris - the previous commenter.
Comment 14 by bugdro...@chromium.org, Nov 2, 2011
The following revision refers to this bug:
    http://src.chromium.org/viewvc/chrome?view=rev&revision=108394

------------------------------------------------------------------------
r108394 | vandebo@chromium.org | Wed Nov 02 18:27:58 PDT 2011

Changed paths:
 M http://src.chromium.org/viewvc/chrome/branches/874/src/chrome/renderer/print_web_view_helper.cc?r1=108394&r2=108393&pathrev=108394

Merge 106160 - Fix print media page size by using the value we compute.

BUG=82472
TEST=NONE (in bug)


Review URL: http://codereview.chromium.org/8344016

TBR=thestig@chromium.org
Review URL: http://codereview.chromium.org/8438061
------------------------------------------------------------------------
Labels: merge-merged-874
Comment 15 by jmo...@sheridanschool.org, Nov 11, 2011
I don't know if this is relevant to this fix or Google Docs but a document produced in Google Docs that is in Landscape mode does not have "Landscape" selected in the print preview. 

If "Landscape" is selected then the document is now printed in landscape, however the expected behavior is that if a document in Google Docs is landscape it would appear in print preview with "Landscape" selected.

JOhn
Comment 16 by vandebo@chromium.org, Nov 11, 2011
We're working on that in  bug 100819 
Sign in to add a comment

Powered by Google Project Hosting