New issue
Advanced search Search tips

Issue 829009 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Closed: Apr 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug

Blocking:
issue 705916



Sign in to add a comment

Something is terribly wrong with transparent linear-gradient and print-to-pdf

Reported by laren...@mailhaven.com, Apr 4 2018

Issue description

Chrome Version       : Chromium 66.0.3347.0 (from puppeteer), Linux
URLs (if applicable) : test file provided

What steps will reproduce the problem?
(1) chromium --headless --disable-gpu --print-to-pdf file:///tmp/b.html
(2) open output.pdf using any pdf viewer
(3) check 2nd and 3rd gradients

What is the expected result?
Expected result can be seen in ordinal view using chromium.

What happens instead?
Invalid gradients.

b.html attached.
 
b.html
881 bytes View Download
Labels: Needs-Triage-M66
Components: -Internals>Headless Internals>Printing
Owner: thestig@chromium.org
Status: Assigned (was: Unconfirmed)
The HTML page loads correctly in Chromium, but even the print preview is missing the gradient, so this isn't specific to it being headless.

thestig, can you take a look, something is going wrong during the conversion from HTML to PDF.
Cc: thestig@chromium.org
Owner: halcanary@chromium.org
On a Mac, the gradients render nicely on Chrome(pdfium) but are heavily rasterized in Preview.app.  
comparison.png
214 KB View Download
Status: WontFix (was: Assigned)
In order to do transparency in a PDF, I need an alpha (soft mask) layer.  This is a bug in how the rasterizer handles the shading pattern (gradient) in the alpha layer.  Please file a bug against Adobe and Apple.

Sign in to add a comment