New issue
Advanced search Search tips

Issue 922008 link

Starred by 1 user

Issue metadata

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



Sign in to add a comment

Body backround is visible in PDF when there is no spacing

Reported by pavel.m...@gmail.com, Jan 15

Issue description

UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36

Steps to reproduce the problem:
1. Open the attached HTML file
2. Print it to PDF

What is the expected behavior?
Chrome's print preview doesn't include red box around the main content, but printed PDF has the border. See attached PDF and print preview screenshot.

The expectation is to create the same PDF like print preview.
I'd say that there should not be any red rectangle around the content as there is no spacing (margin, padding) defined in body HTML.

What went wrong?
The red box around the main content in PDF. 

The other strange thing is that in some higher zooms (e.g. 383,57%) the right line of the rectangle is not visible.

Did this work before? N/A 

Chrome version: 70.0.3538.77  Channel: stable
OS Version: Ubuntu 18.04
Flash Version:
 
hacker_news.pdf
87.4 KB Download
Screenshot from 2019-01-15 13-12-44.png
305 KB View Download
Hacker_News.html
39.1 KB View Download

Comment 1 Deleted

Components: Internals>Printing
Labels: Needs-Milestone

Comment 4 by swarnasree.mukkala@chromium.org, Jan 16 (6 days ago)

Cc: swarnasree.mukkala@chromium.org
Labels: Needs-Feedback Triaged-ET
Tried testing the issue on the reported chrome version #70.0.3538.77 using Ubuntu 17.10 by following below steps.

Steps:
=====
1.Launched chrome.
2.Opened "Hacker_News.html".
3.Opened Print preview.
4.Unable to see the red background as shown in comment#0 screenshot.

Attached screencast for reference.
@reporter: Could you please review attached screencast and let us know if anything missed from our end. Requesting you to retry the issue on latest stable #71.0.3578.98 and let us know if the issue still persists. You can download the latest stable from "https://www.chromium.org/getting-involved/dev-channel".
Thanks.!
922008.webm
2.3 MB View Download

Comment 5 by pavel.m...@gmail.com, Jan 16 (6 days ago)

I'm sorry I forgot to upload CSS files. Please us the attached zip and open Hacker_News.html

The red rectangle is not visible in Print Preview, it's only in PDF.

My Chrome version is Version 70.0.3538.77 (Official Build) (64-bit)
Hacker_News.zip
10.3 KB Download
Project Member

Comment 6 by sheriffbot@chromium.org, Jan 16 (6 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 7 by thestig@chromium.org, Jan 16 (6 days ago)

I don't see any red borders in hacker_news.pdf either.

Comment 8 by pavel.m...@gmail.com, Jan 17 (5 days ago)

I'm attaching Ubuntu default PDF viewer (evince) screenshot.
Screenshot from 2019-01-17 07-32-01.png
339 KB View Download

Comment 9 by thestig@chromium.org, Jan 17 (5 days ago)

You are referring to the thin red border, coorect? That does show up in libpoppler-based PDF viewers like Evince, but does not show up in Chrome's PDF Viewer.

So there are two things here:
1) I'll check Acrobat Reader and Preview.app when I get a chance, but this may be a display issue with Evince.
2) Maybe that red border should not be there at all in the PDF.

Comment 10 by thestig@chromium.org, Jan 17 (5 days ago)

s/coorect/correct/

Comment 11 by pavel.m...@gmail.com, Jan 17 (5 days ago)

Thanks. I have checked Acrobat Reader on Ubuntu and the red box is not present. 

Comment 12 by woxxom@gmail.com, Jan 17 (5 days ago)

A thin red border is seen in muPDF, SumatraPDF (muPDF-based), InfixPDF. These viewers are small and often faster than Adobe's, but I guess they take shortcuts to achieve that speed thus sacrificing accuracy.

No border in Adobe reader or Chrome's pdfium.

Comment 13 by pavel.m...@gmail.com, Jan 17 (5 days ago)

Ok, I'll report the issue to Evince. Thank you.

Comment 14 by pavel.m...@gmail.com, Yesterday (46 hours ago)

I have reported the issue to Evince and Poppler.

There Albert detected that the red border is visible also in Adobe and identified it as a small precision issue:
-- https://gitlab.freedesktop.org/poppler/poppler/issues/714#note_105851

So it seems that the bug may lay in Chromium/Skia when the main content or border is positioned into PDF.

Sign in to add a comment