Closed Bug 1720159 Opened 3 years ago Closed 3 years ago

[XFA] Only the first page gets rendered in the printed version

Categories

(Firefox :: PDF Viewer, defect, P1)

Desktop
All
defect

Tracking

()

VERIFIED FIXED
Tracking Status
firefox91 --- fixed
firefox92 --- verified

People

(Reporter: danibodea, Assigned: calixte)

References

Details

Attachments

(3 files)

Note

  • When the user loads a specific PDF file in Adobe Reader and prints it, he will notice that the browser's printed version only renders the first page and the rest are left blank.

Affected versions

  • Nightly v91.0a1

Affected platforms

  • all

Steps to reproduce

  1. Launch browser.
  2. Flip "pdfjs.enableXfa" to true.
  3. Load the attached PDF file.
  4. Ctrl + P

Expected result

  • Both the print preview and the physically printed version have more than one rendered page.

Actual result

  • Both the print preview and the physically printed version only render the information on the first page; the rest of the pages are displayed as blank or almost blank.

Regression range

  • Not a regression.
Priority: -- → P1

I've unintentionally set the priority. Please set the correct priority level.

It's a no-go, so P1-S1 is the perfect combo for this bug.
Any way thanks to git bisect, I managed to get the culprit:
https://github.com/mozilla/pdf.js/commit/ff440d13e7a6462238b7e931fbac163f69403278

In this patch a div for the page itself was added and it's likely the cause of the issue.
Adding

  #printContainer .xfaPage {
      position: initial;
  } 

in viewer.css when printing fix the issue locally.

Assignee: nobody → cdenizet
Status: NEW → ASSIGNED
Depends on: 1720178
Commit merged into master by GitHub Authored by calixteman (calixteman)
Depends on: 1720361
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
No longer depends on: 1720178

Confirming the fix. The other pages are now displayed in the print version.

Status: RESOLVED → VERIFIED

Fixed in beta by the uplift in bug 1720361.

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: