Closed Bug 1720182 Opened 3 years ago Closed 3 years ago

[XFA] A specific PDF file cannot be printed with input information

Categories

(Firefox :: PDF Viewer, defect, P1)

Desktop
All
defect

Tracking

()

VERIFIED FIXED
92 Branch
Tracking Status
firefox-esr78 --- unaffected
firefox90 --- disabled
firefox91 --- verified
firefox92 --- verified

People

(Reporter: danibodea, Assigned: calixte)

References

(Regression)

Details

(Keywords: regression)

Attachments

(4 files)

Attached file evince-1157-0-GOOD.pdf (deleted) —

Note

  • When the user loads a specific PDF file in the browser, inputs information into the fields, and then prints it, he will notice that the print preview and physically printed version does not show any of the previously input information.

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. input information into the fields.
  5. Print it.

Expected result

  • The information is printed.

Actual result

  • A blank form is printed.

Regression range

  • Not a regression.

Additional information

  • When interacting with any control from the PDF form, Adobe Reader shows a message saying "Please Note: You cannot save a completed copy of this for your computer. If you would like a copy for your records, please fill it in and print it.", so Adobe does not allow saving a completed version of the form, but allows to print one.

This might be fixed by https://github.com/mozilla/pdf.js/pull/13734. Calixte, can you check?

Severity: S3 → S2
Flags: needinfo?(cdenizet)
Priority: -- → P1

The checkbox is not printed and it's a regression caused by:
https://github.com/mozilla/pdf.js/commit/429ffdcd2f3340d38426219dbcb84636db583745

Anyway, the above patch will help to avoid such regressions in the future.

Flags: needinfo?(cdenizet)
Keywords: regression
Regressed by: 1718320
Has Regression Range: --- → yes

(In reply to Calixte Denizet (:calixte) from comment #3)

The checkbox is not printed and it's a regression caused by:
https://github.com/mozilla/pdf.js/commit/429ffdcd2f3340d38426219dbcb84636db583745

Text fields are not printed either. Is another PR required to fix those, or did https://github.com/mozilla/pdf.js/pull/13734 fix those?

Anyway, the above patch will help to avoid such regressions in the future.

\o/

Flags: needinfo?(cdenizet)

I confirmed that text fields will be printed thanks to https://github.com/mozilla/pdf.js/pull/13734.

Flags: needinfo?(cdenizet)
Assignee: nobody → cdenizet
Status: NEW → ASSIGNED
Commit merged into master by GitHub Authored by calixteman (calixteman)
Depends on: 1721179
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 92 Branch

I have confirmed the fix in the latest Nightly and Beta. The information is properly shown in print preview and on the printed version, including checkboxes and radio buttons.
Table borders seem to be missing on print preview and saving is not possible due to the nature of the file. Only blank files can be saved with both Adobe and Firefox.

QA Whiteboard: [pdf_xfa_generic]
No longer depends on: 1754585
No longer depends on: 1754585
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: