Open Bug 1720183 Opened 3 years ago Updated 1 year ago

[XFA] Elements that should not be printed are shown in the printed file

Categories

(Firefox :: PDF Viewer, defect, P2)

Desktop
All
defect

Tracking

()

Tracking Status
firefox91 --- disabled
firefox92 --- affected

People

(Reporter: danibodea, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [pdfjs-printing] )

Attachments

(2 files)

Attached file imm5257e.pdf

Note

  • When the user loads a specific PDF file that has a non-printable logo/image or text and prints it, he will notice that the browser will include the elements that are not supposed to be included in the print rendering.

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. Notice the text/image that is not supposed to be printed.
  5. Print it.

Expected result

  • The elements that are not supposed to be printed, are not.

Actual result

  • The information is printed.

Regression range

  • Not a regression.

Additional information

  • I do not know whether this is a generic XFA issue or rather a dynamic one, but please remove the bug that is incorrectly blocked.

A second example with an image/logo.

Priority: -- → P2
QA Whiteboard: [pdf_xfa_generic], [pdf_xfa_dynamic]
QA Whiteboard: [pdf_xfa_generic], [pdf_xfa_dynamic] → [pdf_xfa_generic]/[pdf_xfa_dynamic]

Calixte, is this dynamic?

Flags: needinfo?(cdenizet)
Whiteboard: [pdfjs-c-printing]

No it isn't.
The image has an attribute relevant="-print" which means that it must be stripped out when we print.
We should add a css class on the generated element and make it visible for the view and invisible when we print.

Flags: needinfo?(cdenizet)
Whiteboard: [pdfjs-c-printing] → [pdfjs-printing]

Related with https://bugzilla.mozilla.org/show_bug.cgi?id=1826783, please help fixing this, printing non-printable elements can imply physical security problems on secret documents.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: