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

[Acroform] Field not correctly saved in the xfa datasets #16081

Closed
calixteman opened this issue Feb 22, 2023 · 1 comment · Fixed by #16082
Closed

[Acroform] Field not correctly saved in the xfa datasets #16081

calixteman opened this issue Feb 22, 2023 · 1 comment · Fixed by #16082
Assignees

Comments

@calixteman
Copy link
Contributor

Attach (recommended) or Link to PDF file here:
pptc153.pdf

Configuration:

  • Web browser and its version: Firefox nightly
  • Operating system and its version: Windows 11

Steps to reproduce the problem:

  1. Open the pdf
  2. Add something in Surname field (1st one on the 1st page)
  3. Save the pdf
  4. Open it in Acrobat

What is the expected behavior? (add screenshot)
The field must contain something.

What went wrong? (add screenshot)
It's empty.

@calixteman
Copy link
Contributor Author

The pdf contains both xfa and acroform.
In pdf.js we only render the acroform but the data are saved in the xfa datasets.
In order to find the XML node where to save the value we use a path but this path is partial (we don't use the parent name, grand-parent name, ...), hence if several fields has the same name we don't select the correct one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant