Closed Bug 1739502 Opened 3 years ago Closed 2 years ago

XFA PDF not opening properly

Categories

(Firefox :: PDF Viewer, defect, P1)

Firefox 93
defect

Tracking

()

RESOLVED FIXED
96 Branch
Tracking Status
firefox96 --- fixed

People

(Reporter: hschawla1009, Assigned: calixte)

References

Details

Attachments

(4 files)

Attached file XFA pdf.pdf

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:93.0) Gecko/20100101 Firefox/93.0

Steps to reproduce:

Open XFA PDF (Attached to this ticket)

Actual results:

All pages work fine except page 6

Expected results:

Page 6 would have loaded fine.

The Bugbug bot thinks this bug should belong to the 'Firefox::PDF Viewer' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → PDF Viewer

There are few issues in this pdf:

  • on page 4, the left margin is missing;
  • for any reason, the contents of page 6, 7 and 8 are overlapped.
Status: UNCONFIRMED → NEW
Ever confirmed: true

The issue with overlapping pages is because of the breakBefore element:

<breakBefore targetType="contentArea" target="flowed.flowedContent" startNew="1"/>

the startNew=1 is not fulfilled and consequently all the subforms are in the same contentArea.
The fix consist to ensure that create a new page when the target contentArea is the same as the current contentArea.

Assignee: nobody → cdenizet
Severity: -- → S2
Status: NEW → ASSIGNED
Priority: -- → P1
Commit merged into master by GitHub
Authored by calixteman (calixteman)

There are still some problems on this PDF.

Attached image Screenshot

It's because of a missing Calibri font: I'll fix.

Fixed by:
Bug 1743838 - Update pdf.js to version 2.12.248 r=pdfjs-reviewers,calixte

Differential Revision: https://phabricator.services.mozilla.com/D132586

2021-12-17T10:49:07.708000: DEBUG : Did not find a branch, checking all integration branches
2021-12-17T10:49:07.719000: INFO : The bisection is done.
pushlog_url: https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=fddb757f9137bb916c1dbe89008928d9b6ac4343&tochange=b5036885cdb973bc037e562b1e35f90649efe430

(between 2021-12-02 and 2021-12-03)

Still problematic for me on Linux, probably because you have the font that I'm missing.

So, we might have different bugs here.
The bug on pages 6,7 and 8 (overlapping text) was fixed for me. The bug you mentioned in comment 7 was not reproducible for me.

(In reply to Kenan from comment #11)

So, we might have different bugs here.
The bug on pages 6,7 and 8 (overlapping text) was fixed for me. The bug you mentioned in comment 7 was not reproducible for me.

Yes, they are two separate bugs. I'll open a new one.

Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
See Also: → 1746612
Target Milestone: --- → 96 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: