Skip to content

Example code for RadioCheckField #1198

Open
@asturio

Description

@asturio

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions