New issue
Advanced search Search tips

Issue 914817 link

Starred by 6 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: 2019-01-07
OS: Mac
Pri: 3
Type: Bug



Sign in to add a comment

Print with "Save as PDF" adds the white line on the page bottom

Reported by aliaksei...@pandadoc.com, Dec 13

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36

Steps to reproduce the problem:
1. Open the attached .htm file (The printed div is 1123x794px, which corresponds the standard A4)
2. Open the "Print" dialog
- Destination "Save as PDF"
- Layout: Landscape
Advanced settings:
- margin: None
- paper size: A4

What is the expected behavior?
The printed content occupies all the PDF.

What went wrong?
The white line is added to the bottom of PDF file.

Did this work before? N/A 

Does this work in other browsers? N/A

Chrome version: 70.0.3538.110  Channel: n/a
OS Version: OS X 10.14.1
Flash Version:
 
Components: Internals>Printing
Components: Blink>Layout
We are hitting a rounding error. On Mac, it rounds down by 1 pixel, and on Linux it rounds up by 1 pixel. (Spills over to page 2)
Labels: Needs-Triage-M70
What element is rounded, it looks like all sizes are in full pixels?
following
Replacement for test data (all dimensions are persisted, just content changes):
rendered-cover.htm
209 KB View Download
result.pdf
46.5 KB Download
Status: Untriaged (was: Unconfirmed)
re: comment 4 - presumably the div that has the blue border. We've had rounding issues in the past when printing. e.g. r468823.
NextAction: 2018-12-31
None of the elements have a non-integer pixel size and I still can't repro.
The NextAction date has arrived: 2018-12-31
NextAction: 2019-01-07
Allowing an extra week for feedback due to holiday.
The NextAction date has arrived: 2019-01-07
I can repro here with the following settings:

Save as PDF, Landscape, A4 paper size, no margins.
rendered-cover.htm.pdf
35.3 KB Download
Labels: -Pri-2 Pri-3
Status: Available (was: Untriaged)
Cc: vamshi.kommuri@chromium.org
 Issue 918791  has been merged into this issue.
Cc: phanindra.mandapaka@chromium.org
 Issue 922192  has been merged into this issue.

Sign in to add a comment