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)
Tracking
()
NEW
People
(Reporter: danibodea, Unassigned)
References
(Blocks 1 open bug)
Details
(Whiteboard: [pdfjs-printing] )
Attachments
(2 files)
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
- Launch browser.
- Flip "pdfjs.enableXfa" to true.
- Load the attached PDF file.
- Notice the text/image that is not supposed to be printed.
- 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.
Reporter | ||
Comment 1•3 years ago
|
||
A second example with an image/logo.
Updated•3 years ago
|
Priority: -- → P2
Reporter | ||
Updated•3 years ago
|
QA Whiteboard: [pdf_xfa_generic], [pdf_xfa_dynamic]
Reporter | ||
Updated•3 years ago
|
QA Whiteboard: [pdf_xfa_generic], [pdf_xfa_dynamic] → [pdf_xfa_generic]/[pdf_xfa_dynamic]
Comment 2•2 years ago
|
||
Calixte, is this dynamic?
Flags: needinfo?(cdenizet)
Whiteboard: [pdfjs-c-printing]
Comment 3•2 years ago
|
||
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)
Updated•2 years ago
|
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.
Description
•