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

form.flatten() leaves border around checkboxes and radio groups #51

Closed
2 tasks done
Nerdsie opened this issue Mar 9, 2024 · 2 comments
Closed
2 tasks done

form.flatten() leaves border around checkboxes and radio groups #51

Nerdsie opened this issue Mar 9, 2024 · 2 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@Nerdsie
Copy link

Nerdsie commented Mar 9, 2024

What were you trying to do?

Flatten a pdf containing fields such as checkboxes and radio groups

How did you attempt to do it?

form.flatten();

What actually happened?

Screenshot 2024-03-09 045227
Screenshot 2024-03-09 050340

After form.flatten() all checkboxes and radiogroups, whether they were selected or not, appear to have a border around where the previous form fields was.

What did you expect to happen?

image

The field should contain the proper value, but not have any erroneous borders added

How can we reproduce the issue?

Attempt to .flatten() any pdf with checkboxes or radiogroups.

Version

1.21.0

What environment are you running pdf-lib in?

Node

Checklist

  • My report includes a Short, Self Contained, Correct (Compilable) Example.
  • I have attached all PDFs, images, and other files needed to run my SSCCE.

Additional Notes

No response

@Nerdsie Nerdsie added bug Something isn't working needs-triage labels Mar 9, 2024
@Sharcoux
Copy link
Collaborator

Seems related to #41

We don't use that feature. If someone would like to have a look and suggest a PR, we might consider it.

@Sharcoux
Copy link
Collaborator

Sharcoux commented Jun 13, 2024

Solved with #56 and released in v2.1.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants