mozilla / mozilla/pdf.js

[Bug]: Text in a specific fillable form field of a pdf isn't being saved

Open
#21,904 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

form-xfa
Dominant language
JavaScript
Stars
53.9k
Forks
10.7k
Avg merge
18h 38m
Merged PRs (30d)
130

Description

Attach (recommended) or Link to PDF file

The text written on the biggest field of this pdf is not being saved after saving, closing and reopening the file: mod__rjue_16_peticoes_diversas.pdf.

Web browser and its version

Firefox 155.0.1

Operating system and its version

Fedora Silverblue 44

PDF.js version

6.3.289

Is the bug present in the latest PDF.js version?

Yes

Is a browser extension

No

Steps to reproduce the problem
  1. Open the file
  2. Write something in the big field after "Requer o seguinte:"
  3. Save the document, close and reopen the saved file
What is the expected behavior?

The text should had been saved.

What went wrong?

The text isn't saved.

Link to a viewer

No response

Additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by opening the attached mod__rjue_16_peticoes_diversas.pdf in PDF.js 6.3.289 and reproducing the save, close, and reopen steps for the large field after “Requer o seguinte:”. Trace the form-field save and reload behavior, then verify that text entered in this field persists after reopening and add regression coverage if the existing tests support this case.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.