skips invisible form fields

Open
#265 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
java
Domain
backend

Research direction

Start by reproducing the hidden-form-field case from the issue and trace the PDF form-field parsing path in the repository. Compare parsing for initially hidden and visible fields, then verify that the hidden fields expose the expected coordinates, names, and related data without breaking existing form parsing.

Written by the indexing model from the issue text.

Description

image

If a field is set to initially hidden (even though can be changed visibility with custom calculation script:

if (this.getField("needsWeight").value == "Yes") {
event.target.display = display.visible;
} else {
event.target.display = display.hidden;
}

These fields (hidden ones) will not be parsed, and you will not get any data on them (coordinates, names, etc.)

Was this intended and is there a way to enable hidden field parsing?

Dominant language
Java
Stars
2.2k
Forks
396
Avg merge
9d 19h
Merged PRs (30d)
3

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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.

More from modesty/pdf2json

All issues in modesty/pdf2json

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.