Closed Bug 1703683 Opened 4 years ago Closed 3 years ago

Broken graphics rendering on a PDF file

Categories

(Firefox :: PDF Viewer, defect, P3)

defect

Tracking

()

VERIFIED FIXED
96 Branch
Tracking Status
firefox96 --- verified

People

(Reporter: gerard-majax, Unassigned)

References

Details

(Whiteboard: [pdfjs-d-smask])

Attachments

(3 files)

Attached image Correct result

While browsing the interwebs, I came accross a PDF file that has broken rendering in nightly: https://dl.ubnt.com/datasheets/poe/PoE_Adapters_DS.pdf

I made sure I was on latest nightly but it still repros.

STR:
0. Download the file

  1. Open in Firefox
  2. Open in Evince

Expected:
On page 2, the graphics for ESD protections are layed out the same way

Actual:
On page 2 under Firefox, the graphics for ESD protections are over the left text.

Attached image Current Firefox result

This is running 20210407094544 on Ubuntu 20.10, under Wayland

I can confirm the issue with Firefox nightly.
But I cannot reproduce it using pdf.js/master with chrome stable.
As far as I remember the only piece of code which is chrome specific:
https://github.com/mozilla/pdf.js/blob/master/src/display/canvas.js#L54-L199
And it remembers me the comment I made here:
https://github.com/mozilla/pdf.js/issues/12798#issuecomment-753336779

Yeah, this is another case of the correct transformation being lost do the smask.

Severity: -- → S3
Priority: -- → P3
Whiteboard: [pdfjs-d-smask]
Depends on: 1739229
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 96 Branch
Flags: qe-verify+

I was able to reproduce the issue on Win10 using build 89.0a1 (20210407212527).
Verified as fixed on Win 10/Mac 10.13/Ubuntu 20.4 using build 96.0b3(20211209163454).

Status: RESOLVED → VERIFIED
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: