Closed Bug 1716380 Opened 3 years ago Closed 3 years ago

Text from the first page of the pdf is not displayed

Categories

(Firefox :: PDF Viewer, defect, P1)

Firefox 91
Desktop
Windows 10
defect

Tracking

()

VERIFIED FIXED
Tracking Status
firefox90 --- disabled
firefox91 --- verified

People

(Reporter: rpopovici, Assigned: calixte)

References

Details

Attachments

(4 files)

Attached image 2021-06-14_17h48_03.png

Tested with:
Nightly 91.0a1 (2021-06-14)

Tested on:
Win 10

Preconditions:
In about:config, set pdfjs.enableXfa = true

Steps:

  1. Launch Firefox
    2.. Open the attached pdf.

Actual result:
Text from the first page of the pdf is missing and an error is displayed in console. Page number is incorrectly displayed. Text from section 3 overlaps. See screenshots.

Expected result:
The first page of the doc is properly displayed and there is no errors in console. Page number and text from section 3 are properly displayed.

Attached image 2021-06-14_17h56_35.png
Attached image 2021-06-14_17h58_06.png
No longer depends on: 1716349

Ralu, can you attach the PDF?

Flags: needinfo?(raluca.popovici)
Attached file file.pdf
Flags: needinfo?(raluca.popovici)

Hi Marco,
Yes, sorry, I forgot. You will find the pdf above.

Calixte, can you check if you fixed this and link the PR if you did?

Assignee: nobody → cdenizet
Status: NEW → ASSIGNED
Priority: -- → P1

This appears to be (partially) fixed in Nightly v91.0a1, changeset 20210618092056. Could not determine the exact push that fixed it with mozregression probably because it's actually the latest build.

The issue mentioned in summary does not occur anymore, as there is no text missing anymore, however, the other 2 issues mentioned in comment 0 are still reproducing:

  1. The "Please list the file names of the attached documents." text still overlaps the table on page 3.
  2. The Page numbers are still not displayed on the footer of each page.

@Calixte: How do you think we should go about this? Should we close this as fixed and log different bugs for the remaining issues?

Flags: needinfo?(cdenizet)

The page number issue is a wontfix for now since it requires to have JS support.
About the text misplacement, there is a PR in review:
https://github.com/mozilla/pdf.js/pull/13594

Flags: needinfo?(cdenizet)

(In reply to Bodea Daniel [:danibodea] from comment #7)

The issue mentioned in summary does not occur anymore, as there is no text missing anymore, however, the other 2 issues mentioned in comment 0 are still reproducing:

  1. The "Please list the file names of the attached documents." text still overlaps the table on page 3.
  2. The Page numbers are still not displayed on the footer of each page.

Let's close this as fixed and open two separate bugs so we can track these issues better.

Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED

I've filed bug 1717594 and bug 1717596 for the remaining issues. I'll mark this as verified.

Status: RESOLVED → VERIFIED
Blocks: 1718234
No longer blocks: 1718234
QA Whiteboard: [pdf_xfa_generic]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: