Print Issue With Multiple Columns Cut Off from right
Reported by
gurvinde...@gmail.com,
Apr 4 2018
|
||||||||
Issue description<b>Chrome Version: <From about:version: Google Chrome x.x.x.x></b> Chrome OS Version: 65.0.3325.181 (Official Build) Windows (64-bit) <b>Chrome OS Platform: <Make/model of computer running Chrome OS></b> <b>Network info: <network, encryption type, router model (if known)></b> Please specify Cr-* of the system to which this bug/feature applies (add the label below). Steps To Reproduce: (1)I am trying to print HTML table with columns more than 10 (2) Issue is while printing its not showing all the columns (3) Sharing the fiddle for example - http://jsfiddle.net/9DbEP/2876/ Expected Result: It should show all the columns while printing Actual Result: How frequently does this problem reproduce? (Always, sometimes, hard to reproduce?) What is the impact to the user, and is there a workaround? If so, what is it? Please provide any additional information below. Attach a screen shot or log if possible. For graphics-related bugs, please copy/paste the contents of the about:gpu page at the end of this report.
,
Apr 4 2018
Does it print as you expected in any other browser?
,
Apr 4 2018
On Linux: - FF prints all columns through the system dialog, but only when "ignore scaling and fit to page" is checked on the Options tab. - Chrome prints all columns if you manually adjust the scale in the cloud print dialog. If you use the system dialog, there is no Options tab that would allow you to enable the "ignore scaling and fit to page" option that makes it work in FF. On Win10: - FF prints all columns through the system dialog by default. - Chrome prints all columns if you manually adjust the scale in the cloud print dialog. If you use the system dialog, I couldn't find a "shrink to fit" option at all. - Edge prints 1 fewer column than Chrome, even when Edge's "Shrink to fit" is selected. Changing OS-Chrome to OS-Windows. The bug was filed from CrOS but the screenshot is windows.
,
Apr 4 2018
Oh, I used a cleaned-up reproduction case, http://jsfiddle.net/dgrogan/9DbEP/2888/ , which moves the @media print css rules to be universal.
,
Apr 5 2018
,
Apr 5 2018
In comment 3, I believe "cloud print dialog" refers to Print Preview. If Blink provides a "fit to page" option, we could potentially plumb it through to Print Preview, so users can toggle it instead of having to manually set the scaling value.
,
Apr 5 2018
> If Blink provides a "fit to page" option, we could potentially plumb it through to Print Preview I'm not too familiar with the Print <-> Blink interface (+mstensho, who is more knowledgeable), but I'd have guessed Blink already exposes something that would let the embedder specify sizing constraints. Chrome tells Blink how wide the window is, for example. Could it also tell Blink how wide the paper is? The layout engine already knows when it has to paginate a document, so some of the relevant information is already getting through, but perhaps some is omitted or not getting honored? mstensho, please correct anything I got wrong!
,
Apr 5 2018
I think the PrintRenderFrameHelper already sends page size information to Blink via the canvas that is sent to WebLocalFrame::PrintPage. The relevant code is at: https://cs.chromium.org/chromium/src/components/printing/renderer/print_render_frame_helper.cc?l=1967-2000 and https://cs.chromium.org/chromium/src/components/printing/renderer/print_render_frame_helper.cc?l=648-658 The page size/content area parameters are from Print Preview.
,
Apr 5 2018
Thanks for the pointer. (And indeed I think my "cloud print dialog" referred to what is more properly known as "Print Preview") Could I get more detail about what the missing link is? This flag is seemingly related? https://cs.chromium.org/chromium/src/third_party/WebKit/public/web/WebPrintScalingOption.h?l=40
,
Apr 6 2018
When printing, Chrome automatically scales down as necessary to fit wide content on the page, but only to a certain limit, so that the result doesn't become unreadably small. The test has a table that's way too wide. To make it fit, I had to scale it down to 61%, and the font became really tiny. I don't think there's anything we should change here, on our side. In any case, it has nothing to do with tables. You can achieve the same effect with a DIV with a large specified width, for instance.
,
Apr 10 2018
Bug reporter: Does manually scaling work for you? As comment 10 said, we could potentially scale the table down even more to make it fit, but then the text will become unreadable. Looking at the Edge browser behavior in comment 3, I suspect their shrink to fit optional also has a minimum size. At which point they won't scale down further because the text will be too small.
,
Apr 11 2018
How we can scale it down manually? I have taken the print in Firefox 59.0.2 in portrait mode it automatically scales the table and showing the full table. But Yes font size is scaled down automatically looks tiny in size but its User's choice to print the same. I think chrome should do the same thing if number of columns are more without affecting the table structure it should print the same. As in lot of legacy applications people are using pure table structure to display the data it'll be very difficult to convert the tables in DIV structure.
,
Apr 11 2018
I think comment 11 is referring to using the "Scale" field in the Print Preview dialog. Testing here, with portrait layout, default margins and Letter size paper the table fits if I scale to 60%.
,
Jun 6 2018
The scaling control is hidden under "More Settings" in the Print Preview dialog on the left side. |
||||||||
►
Sign in to add a comment |
||||||||
Comment 1 by dtapu...@chromium.org
, Apr 4 2018