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

Example code for RadioCheckField #1198

Open
asturio opened this issue Aug 7, 2024 · 2 comments
Open

Example code for RadioCheckField #1198

asturio opened this issue Aug 7, 2024 · 2 comments

Comments

@asturio
Copy link
Member

asturio commented Aug 7, 2024

Is your feature request related to a problem? Please describe.
We used to use RadioCheckField in 1.3.30 to create Radiogroups and Checkboxes. For that we used: getRadioField() and getCheckField(). These methods do not exist in 1.4 and 2.0 anymore, and the deprecation JavaDoc said use getKidField() and getFullField() respectively.

One of the problems if OpenPDF (since iText 2.1.7) is that the documentation is not really good, and the coverage is low, some changes may break the code more often than desired :-(

Describe the solution you'd like
An example of the usage of the actual RadioCheckField would be great. Using:

  • constructor RadioCheckField(PdfWriter, String, String)
  • getKidField()
  • getFullField()
  • getCheckboxParent()

Describe alternatives you've considered
Alternatives could be:

  • stick to 1.3
  • use PdfFormField instead like the example in com.lowagie.examples.forms.FormRadioButton
@asturio
Copy link
Member Author

asturio commented Aug 7, 2024

@Lonzak
Just opened this Issue, but maybe you can take a look at this one?

@melloware
Copy link

I just got burned by this getKidField() vs getRadioField

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

No branches or pull requests

2 participants