Firefox does not display text highlighted with evince in PDFs

UNCONFIRMED
Unassigned

Status

()

defect
P3
normal
UNCONFIRMED
3 months ago
3 months ago

People

(Reporter: linuxhippy, Unassigned)

Tracking

68 Branch
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

Reporter

Description

3 months ago

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0

Steps to reproduce:

opened a PDF document which was annotated (notes + highlighted text) using evince

Actual results:

notes are displayed, highlighted text isn't

Expected results:

firefox should behave like poppler, acrobat reader or google pdf preview and display the hightlighted text.

Reporter

Comment 1

3 months ago

In times where emscripten and wasm perform so well, wouldn't it be better to replace pdf.js with poppler compiler to wasm? PDF seems to cause tons of troubles and maintenance costs - wouldn't it be better to have the pdf.js team join firefox again, instead of burning ressources for even mroe years?

Component: Untriaged → PDF Viewer

(In reply to Clemens Eisserer from comment #1)

In times where emscripten and wasm perform so well, wouldn't it be better to replace pdf.js with poppler compiler to wasm? PDF seems to cause tons of troubles and maintenance costs - wouldn't it be better to have the pdf.js team join firefox again, instead of burning ressources for even mroe years?

Let's leave this bug for discussion about the annotation bug, but this has been considered and it is much more work than it appears to switch.

Tim,
Maybe you have some thoughts on why the annotation isn't working?

Flags: needinfo?(timvandermeij)
Priority: -- → P3

Comment 3

3 months ago

The problem is that the highlight annotations don't have appearance streams, which is a deprecated practice for PDF file generators. We have two open issues on GitHub for solving this: https://github.com/mozilla/pdf.js/issues/6810 should make sure that we draw the yellow highlight correctly and https://github.com/mozilla/pdf.js/issues/6811 should make sure that the highlight is able to go over multiple rows.

Flags: needinfo?(timvandermeij)
You need to log in before you can comment on or make changes to this bug.