Skip to content

Improve acro checkbox set value #1685

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MockingMagician
Copy link

Can set value when checkbox as multiple widget

What?

Actually, unable to set value for a checkbox that as multiple widgets

Why?

Can not fill my pdf because of that

How?

iterate over all available widget to get all possible response

Testing?

Works for my use case

New Dependencies?Nope

Screenshots

Example where a checkbox here is represented by multiple widgets

Screenshot from 2024-10-03 09-14-00

Suggested Reading?

YES

Anything Else?

Nope

Checklist

  • I read CONTRIBUTING.md.
  • I read MAINTAINERSHIP.md#pull-requests.
  • I added/updated unit tests for my changes.
  • I added/updated integration tests for my changes.
  • I ran the integration tests.
  • I tested my changes in Node, Deno, and the browser.
  • I viewed documents produced with my changes in Adobe Acrobat, Foxit Reader, Firefox, and Chrome.
  • I added/updated doc comments for any new/modified public APIs.
  • My changes work for both new and existing PDF files.
  • I ran the linter on my changes.

- base check value on all widgets, when there are multiple widgets
- check possibility on widget
@MockingMagician
Copy link
Author

Hello @Hopding

Is your package still maintained ?

I can see PR's pending from 3 years and no new commits...

Screenshot from 2024-10-10 08-29-45

Screenshot from 2024-10-10 08-32-19

@giox069
Copy link

giox069 commented Jun 3, 2025

@MockingMagician I have the same problem: in need to check PDF form checkboxes when there are multiple options .
How can I solve it ?
There is an interesting maintained fork of this project in cantoo-scribe/pdflib. But it does not seem to include your patches or similar fixes....

@MockingMagician
Copy link
Author

Hi @giox069

You can always use my patch, for my part I created my own version of the library with this patch.

I'll keep an eye on the fork that's being maintained, and see if it's compatible. If the PDF standard is respected, it should be.

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

Successfully merging this pull request may close these issues.

2 participants