New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 785012 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Closed: Yesterday
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Compat



Sign in to add a comment

Lines missing when viewed in Preview.app for Chrome generated PDF from a SVG

Reported by cthoma...@planitar.com, Nov 14 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

Example URL:

Steps to reproduce the problem:
1. Open the attached floor.svg file in Google Chrome
2. Print the svg file to pdf
3. Open the resulting pdf in Preview on Mac OS

What is the expected behavior?
The svg inside the pdf file will display correctly when compared to the original svg file.

What went wrong?
The svg in the pdf file is missing some lines when compared to the original svg file.  See the attached screenshot for an example.

Does it occur on multiple sites: N/A

Is it a problem with a plugin? N/A 

Did this work before? N/A 

Does this work in other browsers? Yes

Chrome version: 61.0.3163.100  Channel: stable
OS Version: OS X 10.12.6
Flash Version:
 
floor.pdf
47.0 KB Download
floor.svg
39.7 KB Download
Screen Shot 2017-11-14 at 4.56.10 PM.png
227 KB View Download
Components: Internals>Printing
Cc: krajshree@chromium.org
Labels: Needs-Milestone Needs-Feedback Triaged-ET
Unable to reproduce the issue on mac 10.12.6 using chrome reported version #62.0.3202.94 and latest canary #64.0.3270.0.

Attached a screen cast for reference.

Following are the steps followed to reproduce the issue.
------------
1. Opened the attached floor.svg file in Google Chrome
2. Printed the svg file to pdf.
3. Opened the resulting pdf in Preview on Mac OS.
4. Observed that svg inside the pdf file displayed correctly when compared to the original svg file as expected.

Note: As per the "Screen Shot 2017-11-14 at 4.56.10 PM.png" in comment #0, the lines missing is shown on safari not on chrome.

cthomason@ - Could you please check the issue using latest stable #62.0.3202.94 by creating a new profile without any apps and extensions and please let us know if the issue still persist or not.
Also please check the issue in safari and please let us know the difference.

Thanks...!!
785012.webm
3.9 MB View Download
Attaching screenshot of safari behaviour.
785012@safari.png
312 KB View Download
Cc: halcanary@chromium.org
The PDF displays correctly in Chrome, but not in Preview.app. On load in Preview.app, the PDF is displayed correctly, but then it "blinks" and then renders incorrectly.

I also tried opening floor.pdf in Acrobat Reader XI on Windows and with Okular on Linux. It displays correctly in those PDF viewers as well. So this is likely a bug in Preview.app. So you probably want to file a bug with Apple.

It may be possible for SkPDF to generate PDFs differently to work around the Preview.app bug. Hal, WDYT?
Labels: -Needs-Feedback -Needs-Milestone
Summary: Lines missing when viewed in Preview.app for Chrome generated PDF from a SVG (was: Lines missing from svg in pdf generated by chrome)
Cc: -halcanary@chromium.org
Owner: halcanary@chromium.org
Status: Untriaged (was: Unconfirmed)
Hal, can you make the call on whether SkPDF can work around this Preview.app issue, or if this is a WontFix?
I just got back from a 1.5 week vacation yesterday, and am just looking at this now.

Does anyone have a minimal test case?
No minimal test case, but I imagine floor.svg can be reduced to just the outer border and the beige floor. No rush, just wanted to keep the bug moving.
minimized test case:

    void draw(SkCanvas* c) {
        SkAutoCanvasRestore acr(c, false);
        SkRect r{64, 16, 240, 240};
        c->saveLayer(&r, nullptr);
        c->drawRect(r, SkPaint());
        SkPaint p;
        p.setBlendMode(SkBlendMode::kDstIn);
        c->saveLayer(&r, &p);
        c->drawRect(r, SkPaint());
    }
chromium-bug-785012.png
34.1 KB View Download
chromium_issue_785012.pdf
2.8 KB Download
Status: Assigned (was: Untriaged)

Comment 11 by halcanary@google.com, Yesterday (44 hours ago)

Status: WontFix (was: Assigned)
recent versions of Preview.app seems to work.
Screen Shot 2019-01-21 at 4.15.04 PM.png
360 KB View Download

Comment 12 by halcanary@google.com, Yesterday (44 hours ago)

MacOS Preview.app, Version 10.1 (944.6.16.1)
Screen Shot 2019-01-21 at 4.17.17 PM.png
627 KB View Download

Sign in to add a comment