The default bug view has changed. See this FAQ.

pdf.js: Gradients in PDF file are rendered solid black

VERIFIED FIXED in Firefox 14

Status

()

Firefox
PDF Viewer
VERIFIED FIXED
5 years ago
5 years ago

People

(Reporter: Jonathan Haas, Unassigned)

Tracking

Trunk
Firefox 14
x86_64
All
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: https://github.com/mozilla/pdf.js/pull/1443 [testday-20120622])

Attachments

(1 attachment)

(Reporter)

Description

5 years ago
Opening http://www.rz.rwth-aachen.de/global/show_document.asp?id=aaaaaaaaaacdmoc in the integrated pdf.js viewer result in an unreadable pdf with black background. When opened in some other viewer it's displayed correctly with a light gray gradient background.

Expected result: Firefox should display the pdf correctly with a light gray gradient background.

Comment 1

5 years ago
Reproduced:
Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120324 Firefox/14.0a1

Evince 3.2.1 does not show black background.
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows 7 → All
(Reporter)

Comment 2

5 years ago
Created attachment 609044 [details]
Reduced sample

This pdf contains a box with simple gradient, green at the top, black at the bottom. When opened in Firefox, it just shows a simple black box.
(Reporter)

Comment 3

5 years ago
*green at the top, red at the bottom
Summary: pdf.js: pdf background is black instead of white → pdf.js: Gradients in PDF file are rendered solid black
(Reporter)

Updated

5 years ago
Blocks: 714712
Jonathan do you own the copyright to the "reduced sampled" pdf?  If so, are you okay with us using it in our test suite?
(Reporter)

Comment 5

5 years ago
Yes, I created it myself using Inkscape. You can use it for anything you want (public domain). If you need something special for the tests (like something with useful integer dimensions or two pdfs which should look the same, but don't then please ask for it.
Fixed by https://github.com/mozilla/pdf.js/pull/1443

Thanks for the test PDF.
No longer blocks: 714712
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Depends on: 743264
Resolution: --- → FIXED

Updated

5 years ago
Whiteboard: https://github.com/mozilla/pdf.js/pull/1443
Target Milestone: --- → Firefox 14
I verified fixed this bug. tested on latest aurora ->  Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120621 Firefox/15.0a2
Status: RESOLVED → VERIFIED
Whiteboard: https://github.com/mozilla/pdf.js/pull/1443 → https://github.com/mozilla/pdf.js/pull/1443 [testday-20120622]
You need to log in before you can comment on or make changes to this bug.