Closed Bug 1825844 Opened 2 years ago Closed 2 years ago

pdf preview doesn't display text for pdf files that are missing an embedded font

Categories

(Thunderbird :: Untriaged, defect)

Thunderbird 102
defect

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: acmazer8888, Unassigned)

Details

Steps to reproduce:

I tried to open a pdf attachment with the built-in pdf viewer. The error occurs with pdf files that are missing an embedded font. The missing font in question is "Arial, Type: TrueType, Encoding: Ansi".

Error Console output:
renderView: "TypeError: performance is null" viewer.js:7892:19
renderView resource://pdf.js/web/viewer.js:7892

Actual results:

The pdf opens, but without showing most of the text on it.

Expected results:

The text should be displayed regardless of a missing font.

Can you attach a sample. Can you view the file in Firefox? (The pdf viewer is shared code.)

Summary: pdf preview doesn't display text, TypeError: performance is null → pdf preview doesn't display text for pdf files that are missing an embedded font

Using a local copy of the pdf.js downloaded from github (version 3.4.120), I can successfully open the pdf file in my browser.
Sadly I cannot share a sample file as they are confidential. Are you unable to reproduce the issue on your end?

Can't test it without a sample.
You may want to try thunderbird beta as well, and see if it works there.

I sent you a mail that is hopefully capable of reproducing the issue.
The bug seems to not be due to missing fonts, as a pdf file that couldn't be opened correctly in one mail, worked correctly in another. I'm not seeing a pattern. Hopefully you'll be able to diagnose something.

I can confirm the file looks different in firefox vs thunderbird (daily). I don't know why.

Does this also reproduce when using version 115 started in Help > Troubleshoot Mode?
If it does, and you have not already done so, please list complete steps to reproduce.

Whiteboard: [closeme 2023-10-01]

Resolved per whiteboard

Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Resolution: --- → INCOMPLETE
Whiteboard: [closeme 2023-10-01]
You need to log in before you can comment on or make changes to this bug.