PDTerminalField has this: public void setWidgets(List<PDAnnotationWidget> children) { COSArray kidsArray = COSArrayList.converterToCOSArray(children); getCOSObject().setItem(COSName.KIDS, kidsArray); }
Shouldn't this also set the /Parent entry for each widget in the array? In the code I did earlier this week ( https://justpaste.it/CreateRadioButtons ), I was unable to get the radio buttons displayed with Adobe Reader until the /Parent entry was set in each widget.
widget.getCOSObject().setItem(COSName.PARENT, radioButton); --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org