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

Fields not rendered after saving and opening Dutch tax form #18072

Open
timvandermeij opened this issue May 12, 2024 · 2 comments
Open

Fields not rendered after saving and opening Dutch tax form #18072

timvandermeij opened this issue May 12, 2024 · 2 comments

Comments

@timvandermeij
Copy link
Contributor

timvandermeij commented May 12, 2024

Attach (recommended) or Link to PDF file here:

Configuration:

Steps to reproduce the problem:

  1. Open the PDF file (Dutch tax form).
  2. Click the first radio button on the second page. Notice that extra fields appear behind it.
  3. Enter a date: 12-05-2024
  4. Save the PDF file to disk.
  5. Open the saved PDF file. Notice that the first radio button on the second page is checked, but the extra fields behind it are no longer visible. This makes it seem as if data loss occurred, even though that's not the case.
  6. Click the second radio button below it and click the first radio button again. Notice that the extra fields behind the first radio button are now correctly visible, including the entered date.

What is the expected behavior? (add screenshot)
Expected

What went wrong? (add screenshot)
Actual

Link to a viewer (if hosted on a site other than mozilla.github.io/pdf.js or as Firefox/Chrome extension): https://mozilla.github.io/pdf.js/web/viewer.html

@timvandermeij timvandermeij changed the title Saving filled out Extra fields not rendered after saving and opening a PDF file with AcroForms May 12, 2024
@timvandermeij timvandermeij changed the title Extra fields not rendered after saving and opening a PDF file with AcroForms Fields not rendered anymore after saving and opening a PDF file with AcroForms May 12, 2024
@timvandermeij timvandermeij changed the title Fields not rendered anymore after saving and opening a PDF file with AcroForms Fields not rendered after saving and opening Dutch tax form May 12, 2024
@calixteman
Copy link
Contributor

I suppose the action under the A entry must be triggered even when there's no user action.
In the specs, we can read that:

The optional A entry in the annotation or outline item dictionary (see Tables 168 and 153) specifies an
action performed when the annotation or outline item is activated;...

I wonder when we should trigger the action: either when rendering the annotation for the first time or when all the annotations data are loaded in the sandbox (and before or after DcumentOpen/PageOpen...).

@timvandermeij
Copy link
Contributor Author

Today I found out that if I save the form with the PDF editor in Microsoft Edge and then open the PDF file with Firefox that it does render correctly, so that makes me think that the rendering part in PDF.js might work correctly but that it's rather a problem with saving the PDF file from PDF.js...

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

No branches or pull requests

2 participants