I’m using the latest Aspose.PDF v23.1, try to edit Radiobutton in code, but find a problem. Below is my code and screenshot
var document = new Document(“D:\test.pdf”);
foreach (var item in document.Form.Fields)
{
if (item is RadioButtonOptionField rbof && item.Parent is RadioButtonField rbf)
{
rbf.Selected = 2;
break;
}
}
document.Save(“D:\test_edit.pdf”);
You will find that the appearance of the Radiobutton has two circles
test.pdf (102.1 KB)
aspose error.png (19.1 KB)