Hi Team, Please find the link of filled PDF
[ https://drive.google.com/file/d/1uzjN6fag5a-MT2kOO0ifAVM9ZsMLqUpo/view?usp=sharing ] On Thu, Aug 25, 2022 at 12:43 PM Damaji Kalunge <dam...@technogise.com> wrote: > Please find the attached filled PDF where checkbox is not checked. > below code snippet to check the checkbox. > > COSDictionary cosDictionary3=pDAcroForm.getField("ap.sex").getCOSObject(); > cosDictionary3.setString(COSName.V ,"female"); > > > On Thu, Aug 25, 2022 at 12:31 PM Tilman Hausherr <thaush...@t-online.de> > wrote: > >> You may also have to add the appearance stream dictionaries to the >> update list. >> >> field.getWidgets().get(0).getAppearanceCharacteristics().getCOSObject() >> field.getWidgets().get(0).getAppearance().getCOSObject() >> >> field.getWidgets().get(0).getAppearance().getNormalAppearance().getCOSObject() >> >> This may be too much or not be complete, the best would be to look at it >> with PDFDebugger. >> >> Tilman >> >> Am 25.08.2022 um 08:55 schrieb Tilman Hausherr: >> > Hi, >> > >> > Checkboxes are updated with check() and unCheck(). >> > >> > If it still doesn't work, please upload the result file somewhere. >> > >> > Tilman >> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org >> For additional commands, e-mail: users-h...@pdfbox.apache.org >> >>