Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XFA Binding error in Form #13756

Open
JDziurlaj opened this issue Jul 18, 2021 · 5 comments
Open

XFA Binding error in Form #13756

JDziurlaj opened this issue Jul 18, 2021 · 5 comments
Labels

Comments

@JDziurlaj
Copy link

JDziurlaj commented Jul 18, 2021

Attach (recommended) or Link to PDF file here: Attestation_d'occupation.pdf
https://services.groups.be/docgenerator/Docgen/FormRequest.aspx?noDocument=90101&noGroupe=10&cdLangue=1
Configuration:

  • Web browser and its version: 92.0a1 (2021-07-18) (64-bit)
  • Operating system and its version: Windows 10

Steps to reproduce the problem:

  1. enableXfa = true
  2. Open form

What is the expected behavior? (add screenshot)

What went wrong? (add screenshot)
image

Document does not load.
Warning: XFA - an error occurred during parsing and binding: TypeError: can't access property Symbol.iterator Warning: XFA - an error occurred during layout: TypeError: can't access property Symbol(), this.form is undefined

@Snuffleupagus
Copy link
Collaborator

Document does not load.
Warning: XFA - an error occurred during parsing and binding: TypeError: can't access property Symbol.iterator Warning: XFA - an error occurred during layout: TypeError: can't access property Symbol(), this.form is undefined

Fixing the breaking error specifically looks pretty trivial, and I can submit a patch for that in case it's deemed helpful.
(Although there's likely other things wrong with this document and those bugs I probably cannot fix.)

@calixteman
Copy link
Contributor

@Snuffleupagus, feel free to fix whatever you want ;): your help is greatly appreciated.
Anyway, the binding ref make a reference to $record: as far as I understand specs, it's related to data coming from an external source (see chapter Exchanging Data Between an External Application and a Basic XFA Form) so we won't implement anything related to that stuff but if I misunderstood specs please tell me.
And there are few layout issues...

@JDziurlaj
Copy link
Author

JDziurlaj commented Jul 19, 2021

$record allows for windowing a larger dataset, including XML embedded in the xfa data dom. For example, a subset of data can be rendered on to the form at once. The config dom present.common.data.record value stores the location of the repeating record value. I can upload an example if needed.

@calixteman
Copy link
Contributor

@JDziurlaj, +1 for an example.

@JDziurlaj
Copy link
Author

example datawindow.pdf

calixteman added a commit to calixteman/pdf.js that referenced this issue Oct 2, 2021
  - it aims to fix some rendering issues in the pdf in mozilla#13756;
  - add scale factors for Times New Roman.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants