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 <[email protected]>
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: [email protected]
> For additional commands, e-mail: [email protected]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]