reading a little further (and not being able to see the image) I'm guessing that there is a single checkbox which you can tick if the person has one of the three potential states. But that's not possible to as a checkbox can only hold a value for unchecked (default OFF) and one for checked. So checking by providing one of the three values and also capturing that is not possible.
You should use a List field in that case or a group of radio buttons or have a hidden field where you in addition to checking the checkbox hold the value of what checked means. BR Maruan Am Mittwoch, dem 17.08.2022 um 08:54 +0200 schrieb sahy...@fileaffairs.de: > In addition, > > are you sure that Indeterminate or Intersex are the potential values > defined for the checkbox(es). The visible text is not what determines > the potential values fo rthe checked/unchecked state. Also it's > unusual > that a checkbox has 3 potenmtial values as it's either checked or > unchecked. > > If you upload the the PDF to a shared location I can take a look. > > BR > Maruan > > > > Am Mittwoch, dem 17.08.2022 um 08:41 +0200 schrieb Tilman Hausherr: > > Hi, > > > > If this is really a PDCheckBox then call check() or uncheck(). I > > can't > > see the image, maybe this was an attachment. > > > > Tilman > > > > Am 17.08.2022 um 08:26 schrieb Damaji Kalunge: > > > Hi Team, > > > > > > In the editable PDF we have a checkbox as shown below. > > > image.png > > > > > > *Indeterminate / Intersex / Unspecified []* > > > * > > > * > > > We are able to check the above checkbox using below code and > > > only > > > with value "*unspecified" . > > > * Then only the checkbox is ticked in the filled PDF. > > > COSDictionary > > > cosDictionary3=pDAcroForm.getField("ap.sex").getCOSObject(); > > > cosDictionary3.setString(COSName.V ,"unspecified"); > > > ** > > > We have requirement to set the checkbox value *Indeterminate or > > > **Intersex * then by with value "i*ndeterminate" or "i**ntersex > > > *" > > > does not ticked the checkbox in the filled PDF. > > > > > > I am afraid if we set the last value to PDF Checkbox then > > > downstream > > > processing may have an impact which is not in our control to fix > > > or > > > analyze. > > > > > > Could you please help out in this scenario ? > > > > > > Thanks > > > Damaji. > > > > > > * > > > * > > > -- -- Maruan Sahyoun FileAffairs GmbH Josef-Schappe-Straße 21 40882 Ratingen Tel: +49 (2102) 89497 88 Fax: +49 (2102) 89497 91 sahy...@fileaffairs.de www.fileaffairs.de Geschäftsführer: Maruan Sahyoun Handelsregister: AG Düsseldorf, HRB 53837 UST.-ID: DE248275827 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org For additional commands, e-mail: users-h...@pdfbox.apache.org