Closed Bug 738979 Opened 13 years ago Closed 13 years ago

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

Categories

(Firefox :: PDF Viewer, defect)

x86_64
All
defect
Not set
normal

Tracking

()

VERIFIED FIXED
Firefox 14

People

(Reporter: jonathan_haas, Unassigned)

References

Details

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

Attachments

(1 file)

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.
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
Attached file Reduced sample (deleted) —
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.
*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
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?
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
Closed: 13 years ago
Depends on: 743264
Resolution: --- → FIXED
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.

Attachment

General

Creator:
Created:
Updated:
Size: