Closed Bug 1718521 Opened 3 years ago Closed 3 years ago

[XFA] An image element is incorrectly rendered

Categories

(Firefox :: PDF Viewer, defect, P1)

Desktop
All
defect

Tracking

()

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

People

(Reporter: danibodea, Assigned: calixte)

References

Details

Attachments

(13 files)

559.55 KB, application/pdf
Details
249.20 KB, image/png
Details
1.15 MB, application/pdf
Details
251.16 KB, image/png
Details
288.55 KB, application/pdf
Details
257.54 KB, image/png
Details
1.94 MB, application/pdf
Details
340.51 KB, image/png
Details
81 bytes, text/x-github-pull-request
Details
44 bytes, text/x-github-pull-request
Details | Review
81 bytes, text/x-github-pull-request
Details
44 bytes, text/x-github-pull-request
Details | Review
81 bytes, text/x-github-pull-request
Details

Note

  • When the user loads a specific PDF file in Adobe Reader and Firefox, an image element is incorrectly displayed in the browser.

Affected versions

  • Nightly v91.0a1

Affected platforms

  • all

Preconditions

  • Flip the "pdfjs.enableXfa" pref to true.

Steps to reproduce

  1. Launch browser.
  2. Load the attached PDF file.
  3. Go to the end of page 1, Section 10, b.

Expected result

  • An arrow-like element is shown, pointing to the right.

Actual result

  • An incorrect element is rendered, looks like a checkbox.

Regression range

  • Not a regression, but an implementation fault.
Attached file imm5257e.pdf

PDF in question.

Demo.

The image here is in tiff format which is not supported in firefox.
So we should add a tiff decoder to pdf.js.

Attached file PDFBOX-2045-0-GOOD.pdf

This PDF has an image that the browser won't display. Demo below.

Attached image image missing.png

Another logo image missing from the browser's rendering.

Attached image missing image 3.png

Demo for the PDF above.

Another one.

In PDFBOX-2045-0-GOOD.pdf, the image is a jpeg one but instead of being a base64 stream inside the xml itself, it's an embedded binary stream in the pdf.
The href of the image is a string accessible through Names dictionary.

Commit merged into master by GitHub
Authored by calixteman (calixteman)
Commit merged into master by GitHub
Authored by calixteman (calixteman)
Assignee: nobody → cdenizet
Status: NEW → ASSIGNED
Priority: P2 → P1
Commit merged into master by GitHub
Authored by calixteman (calixteman)
Depends on: 1719380

Could you verify the PDFs from this bug are fixed?
Except imm5257e.pdf, for which we should file a separate bug to add support for the TIFF format.

Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Flags: needinfo?(daniel.bodea)
Resolution: --- → FIXED

Test results:

  • imm5257e.pdf - not fixed.
  • PDFBOX-2045-0-GOOD.pdf - FIXED.
  • pdf.js-LINK-1773-1-GOOD.pdf - FIXED.
  • Antrag_Abschlussarbeit.pdf - FIXED.

Verified as fixed based on the last comment.
Logging a new issue for the one that is not fixed: bug 1719750.

Status: RESOLVED → VERIFIED
QA Whiteboard: [pdf_xfa_generic]
Flags: needinfo?(daniel.bodea)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: