You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@pdfbox.apache.org by Damaji Kalunge <da...@technogise.com> on 2022/08/17 15:30:03 UTC

Fwd: Fill value in the Group PDF Checkbox Field using PDAcroForm.

Hi Team,

Please refer to the attached PDF.

 Requirement is tick the sex checkbox (Group of checkbox with one  PDF
Field name .ie."ap.sex") based on its possible values like  *male,
female,  **unspecified*, "i*ndeterminate"  and  "i**ntersex *" .

    Sex.    Male *[] *  Female*[] *   Indeterminate/Intersex/Unspecified
*[]*

Facing issue for "*i**ndeterminate"  and  "i**ntersex *"  with below code.
Selected below approach to set PDF Fields because filling encrypted PDF
File.

COSDictionary  cosDictionary3=pDAcroForm.getField("ap.sex").getCOSObject();
cosDictionary3.setString(COSName.V ,"unspecified");

Could you please help out with this issue ?

Thanks
Damaji.