New issue
Advanced search Search tips

Issue 922695 link

Starred by 1 user

Issue metadata

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



Sign in to add a comment

Incorrect scale in Print Preview

Reported by jan.toso...@gmail.com, Jan 16 (6 days ago)

Issue description

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

Steps to reproduce the problem:
1. Open the attached HTML file
2. Ctrl+P
3. Select Save as PDF (Chrome virtual printer)
4. Select A3 medium size, the landscape mode and no margins

What is the expected behavior?
The vertical blue line at 420mm should be positioned exactly at the right border (A3 page is 420x297 mm)

What went wrong?
All the graphics of width 500mm fits exactly to the 420mm page width. That blue line is visible even for A4 landscape page (width 297 mm).

If the sufficient media size is selected, scaling is Ok (in case of A1 that blue line is exactly in the middle).

Did this work before? N/A 

Chrome version: 71.0.3578.98  Channel: stable
OS Version: 10.0
Flash Version:
 
svg-dimensions_500x300mm.html
567 bytes View Download

Comment 1 by viswa.karala@chromium.org, Jan 17 (6 days ago)

Labels: Needs-Triage-M71

Comment 2 by viswa.karala@chromium.org, Jan 17 (6 days ago)

Cc: viswa.karala@chromium.org
Components: Internals>Printing
Labels: Triaged-ET Needs-Feedback
Tried testing the issue on chrome reported version# 71.0.3578.98 using Windows-10 with steps mentioned below:
1) Launched chrome reported version, dragged and dropped the file provided in comment# 0
2) Pressed Ctrl+P and selected 'Save as PDF'
3) Selected 'Landscape' mode, A3 size and Margins: None, observed Blue line on right side in the preview window

@Reporter: Please find above mentioned information and attached screencast for your reference and provide your feedback on it. If possible provide screenshot/screencast of the issue which help in better understanding and further triaging it in better way,

Thanks!

922695.mp4
973 KB View Download

Comment 3 by jan.toso...@gmail.com, Jan 17 (5 days ago)

Thanks for the video which confirms buggy scaling. If A3 is selected, the page width is 420mm, which corresponds to that blue vertical line. I am attaching the expected preview (that part right to the blue line is cropped and the rest is a bit larger so that blue line lies exactly on that right edge). 
expected-size.png
10.9 KB View Download
Project Member

Comment 4 by sheriffbot@chromium.org, Jan 17 (5 days ago)

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding the requester to the cc list.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Comment 5 by cmdrbens...@gmail.com, Today (8 hours ago)

Unsure if this is related, but I was finding that changing the scale settings within the Print Preview window was no longer firing the onBeforePrint event in the browser, which has made my layouts be affected by a similar issue.  The onBeforePrint event fired as expected in releases prior to 71.0.3578.98.

Sign in to add a comment