Closed Bug 1791191 Opened 3 years ago Closed 3 years ago

Firefox 104.* renders PDF text incorrectly on windows

Categories

(Firefox :: PDF Viewer, defect, P1)

Firefox 104
defect

Tracking

()

RESOLVED FIXED
110 Branch
Tracking Status
firefox-esr102 --- verified

People

(Reporter: reinhard.nissl, Assigned: calixte)

References

Details

Attachments

(5 files)

Attached file bad.pdf

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:104.0) Gecko/20100101 Firefox/104.0

Steps to reproduce:

Open bad.pdf

Actual results:

No text is displayed compared to good.pdf

Expected results:

bad.pdf should look like good.pdf, i. e. display "Lohnabrechnung"

Attached file good.pdf
Attached file old.pdf

Provided old.pdf, mentionend in ghostscript ticket.

The Bugbug bot thinks this bug should belong to the 'Firefox::PDF Viewer' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → PDF Viewer

With browser.display.use_document_fonts = 0 (as mentioned in https://bugzilla.mozilla.org/show_bug.cgi?id=1776543), the text gets displayed.

Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Resolution: --- → DUPLICATE

I reopen this bug in order to track the fix we made in pdf.js.

Assignee: nobody → cdenizet
Severity: -- → S2
Status: RESOLVED → REOPENED
No longer duplicate of bug: 1783740
Ever confirmed: true
Priority: -- → P1
Resolution: DUPLICATE → ---
Duplicate of this bug: 1803926
Depends on: 1809042

Comment on attachment 9311200 [details] [review]
PR 15900: Set ExpansionFactor to 0.06 when it's equals to 0 in the private dict of CFF fonts

ESR Uplift Approval Request

  • If this is not a sec:{high,crit} bug, please state case for ESR consideration: According the number of duplicates we've on gh and bugzilla and since it makes some pdf impossible to read, it's probably worth having the fix in ESR.
  • User impact if declined: Impossible to read some pdfs.
  • Fix Landed on Version: 110
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): It's a one-line patch, pdf.js is self-contained in m-c and it's has been verified with several pdfs.
Attachment #9311200 - Flags: approval-mozilla-esr102?
Flags: qe-verify?
Flags: qe-verify? → qe-verify+

In such a case The ExpansionFactor is set to 0.06 (default value) when the font is converted
into an OpenType one.

Comment on attachment 9311330 [details]
Bug 1791191 - Some pdfs are not visible on Windows because of bad ExpansionFactor in CFF fonts r=#pdfjs-reviewers,RyanVM

Approved for 102.7esr.

Attachment #9311330 - Flags: approval-mozilla-esr102+
Attachment #9311200 - Flags: approval-mozilla-esr102?

Reproduced the issue on Firefox 106.0a1 (2022-09-16) under Windows 10 by using the PDF provided in Comment 0.

The issue is fixed on Firefox 102.7.0esr on the same system.

Flags: qe-verify+

I've talked with GhostScript developers about 'bad ExpansionFactor in CFF fonts'.
They'll try to avoid creating such fonts accidentially in future.
See https://bugs.ghostscript.com/show_bug.cgi?id=705872#c6.

Duplicate of this bug: 1809615
Duplicate of this bug: 1810417
Status: REOPENED → RESOLVED
Closed: 3 years ago3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 110 Branch
Duplicate of this bug: 1816128
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: