Open Bug 1720896 Opened 3 years ago Updated 3 years ago

[XFA] The table frames aren't displayed in print preview when the browser window is not maximized

Categories

(Firefox :: PDF Viewer, defect, P3)

Desktop
All
defect

Tracking

()

REOPENED
Tracking Status
firefox90 --- disabled
firefox91 --- affected
firefox92 --- affected

People

(Reporter: danibodea, Unassigned)

References

Details

(Whiteboard: [pdfjs-printing] )

Attachments

(3 files, 1 obsolete file)

Note

  • When the user loads a specific PDF file and prints it, he will notice that the table frames are not displayed in the print preview. However, they appear to be displayed on the printed version (tested with print as PDF).

Affected versions

  • Nightly v92.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

  • The print preview renders the table frames.

Actual result

  • The print preview does not render tables' frames.

Regression range

  • Not a regression.
Summary: [XFA] Only the first page gets rendered in the printed version → [XFA] The table frames aren't displayed in print preview

I see the borders myself. Daniel, could you test again?

Maybe it was fixed by the latest pdf.js update (bug 1721179).

Flags: needinfo?(daniel.bodea)

I don't understand why I can't reproduce this issue anymore, nor on the latest version, neither on the originally reported version.
It might be a third-party cause. Closing as worksforme. Keeping an eye out for it.

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

I can see this reproduce again in Nightly v92.0a1 (20210721212617)
And it does NOT reproduce in Beta v91.0b5 (20210720190304)
But I cannot seem to find a "good" build using mozregression
It appears that this issue only reproduces in the Nightly channel.

Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---

The only difference between Nightly and Beta 5 should be bug 1721179.

Retest in 91.0b6.

Flags: needinfo?(daniel.bodea)
Priority: -- → P3

I've found the cause of reproduction of the issue. It is NOT a regression. The table frames are only displayed if the browser is maximized. If the browser window has any other shape other than the whole available display, the frames are not displayed in print preview.

Flags: needinfo?(daniel.bodea) → needinfo?(mcastelluccio)
Summary: [XFA] The table frames aren't displayed in print preview → [XFA] The table frames aren't displayed in print preview when the browser window is not maximized

The print preview rescales itself to fit the window and so some thin lines may disappear because of that.
It's likely the case here, and at the end lines are printed in the resulting pdf so I'd say that isn't a bug in pdf.js.
Eventually it can be one for the print preview but I'm not sure that something can be done to improve this.

Flags: needinfo?(mcastelluccio)

The first PDF attached has the behavior discussed in this bug (borders not displayed in print preview if the browser is not maximized).
The other PDF does not show table borders even if the browser is maximized. The second PDF will be rendered obsolete here and reattached to bug 1723806.

Attachment #9232572 - Attachment is obsolete: true
See Also: → 1723806

Another PDF with this behavior.

This issue is NOT visible in physically printed PDF forms. Appear to be an issue of print preview only.

Considering comment 8, if this is considered as not an issue of pdf.js, please remove the "blocks" bug and the QA Whiteboard. Thanks.

QA Whiteboard: [pdf_xfa_generic]
Whiteboard: [pdfjs-c-printing]
Whiteboard: [pdfjs-c-printing] → [pdfjs-printing]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: