Closed Bug 1777352 Opened 3 years ago Closed 3 years ago

pdfjs renders PDF pages gray

Categories

(Firefox :: PDF Viewer, defect)

Firefox 102
defect

Tracking

()

RESOLVED DUPLICATE of bug 1778068
102 Branch

People

(Reporter: spilkerj, Unassigned)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Firefox/102.0

Steps to reproduce:

I opened a PDF in FF 102 with the built-in PDF viewer. All files showed the same behavior.

Actual results:

The PDF pages render with a gray color (the actual PDF pages themselves, not the viewer background color), which makes it hard to read black-on-grey text and makes other parts of the PDF appear to display colors incorrectly.

I had FF 101 running on another computer, and compared all the about:config entries with "pdfjs" in them. The issue is that, new in 102, there are two additional parameters - pdfjs.pageColorsBackground and pdfjs.pageColorsForeground - set with default values of "Canvas" and "CanvasText". These appear to override the correct rendering of the PDFs.

Expected results:

The PDF page backgrounds should be rendered white, in their native color.

Deleting the two defaults and leaving the above about:config keys blank fixed the issue.

The Bugbug bot thinks this bug should belong to the 'Core::Canvas: 2D' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Canvas: 2D
Product: Firefox → Core

The severity field is not set for this bug.
:lsalzman, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(lsalzman)
Component: Graphics: Canvas2D → PDF Viewer
Flags: needinfo?(lsalzman)
Product: Core → Firefox
Target Milestone: --- → 102 Branch
Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: