pdf-lib icon indicating copy to clipboard operation
pdf-lib copied to clipboard

Improve acro checkbox set value

Open MockingMagician opened this issue 1 year ago • 3 comments

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

  • [X] I read CONTRIBUTING.md.
  • [X] I read MAINTAINERSHIP.md#pull-requests.
  • [ ] I added/updated unit tests for my changes.
  • [ ] I added/updated integration tests for my changes.
  • [X] I ran the integration tests.
  • [X] I tested my changes in Node, Deno, and the browser.
  • [X] 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.
  • [X] My changes work for both new and existing PDF files.
  • [X] I ran the linter on my changes.

MockingMagician avatar Oct 03 '24 07:10 MockingMagician

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

MockingMagician avatar Oct 10 '24 06:10 MockingMagician

@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....

giox069 avatar Jun 03 '25 17:06 giox069

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.

MockingMagician avatar Jun 13 '25 21:06 MockingMagician