mozilla / pdf.js

PDF Reader in JavaScript
https://mozilla.github.io/pdf.js/
Apache License 2.0
47.09k stars 9.81k forks source link

Data in formfields with same id (duplicates) are not saved when saving PDF #18291

Closed martinjo closed 3 days ago

martinjo commented 1 week ago

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

Configuration:

Steps to reproduce the problem:

  1. Open Test.pdf and fill in one of the date fields.
  2. The other date field will also update the entered value (the date fields have the "field id", this is intentional).
  3. Download the pdf with the date field filled in.
  4. Open the downloaded PDF.
  5. The value entered in the date field is not saved.

What is the expected behavior? I was expecting that the value I entered in the field would be saved when I download the PDF. All other fields (that does not share id with another field) are saved.

ArmaandeepSingh commented 1 week ago

Hi @martinjo, Would you be able to share a video of this issue as an attachment if that sounds feasible to you?

calixteman commented 1 week ago

I suppose the date fields are the two ones called dagens_datum, correct ? I only see one field with a date inside (the one called personnummer). So if I'm correct, I don't manage to reproduce your issue either with Firefox nightly or with Firefox 127.0 on Windows 11.

ArmaandeepSingh commented 1 week ago

Yes @calixteman, I could also not reproduce it on my local. However I think he is mentioning the fields in the right with the text Dagens datum.

timvandermeij commented 3 days ago

I also cannot reproduce the issue by using the "Dagens datum" fields. Closing as incomplete given this and the conclusions above until more information is provided.