New issue
Advanced search Search tips

Issue 785142 link

Starred by 3 users

Issue metadata

Status: Available
Owner: ----
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Mac
Pri: 2
Type: Bug



Sign in to add a comment

SVG Pattern in PDF Preview Problem

Reported by hugodic...@gmail.com, Nov 15 2017

Issue description

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

Steps to reproduce the problem:
1. open pattern 2.svg file in browser
2.  print the page use PDF Preview 

What is the expected behavior?
Showing rectangle shape with pattern properly

What went wrong?
Blurring pattern shown (attached in pattern 2.pdf)

Did this work before? N/A 

Does this work in other browsers? N/A

Chrome version: 61.0.3163.100  Channel: stable
OS Version: OS X 10.12.6
Flash Version:
 
pattern 2.svg
920 bytes Download
pattern 2.pdf
3.1 KB Download

Comment 1 by f...@opera.com, Nov 15 2017

Components: Internals>Skia>PDF
Labels: OS-Linux
Status: Available (was: Unconfirmed)
I think this is a variant on a class of bugs where we raster the SVG into a fixed, small canvas and then send it to pdf. The result is blurry due to the resampling from the rastered SVG.

Way back when I thought there was a Skia effort to have SVG raster directly into pdf. Did that go anywhere? Am I mis-remembering? Is this now a Chrome problem to fix?

Comment 3 Deleted

I'm seeing a similar issue with a very small SVG I'm using to simulate leader dots

Comment 5 by sig...@gmail.com, Mar 22 2018

I am having the same issue, with svg patterns I expected Chrome to use pdf tiling brushes and maintain their appearance.

In the attached file the column on the left is made with a canvas, and the column on the right is made with a svg in html. When saved to pdf in Chrome, the svg is very pixelated and looks terrible compared to the canvas.
tmp2034.tmp.pdf
414 KB Download

Sign in to add a comment