Hello,
Could you please help me to delete radio button options? It seems like field remove functionality doesn’t work in appropriate way. I have three radio buttons on my file. Here is my code sample:
using (Aspose.Pdf.Document document = new Aspose.Pdf.Document(@"C://result.pdf"))
{
var fields = document.Form.Fields.ToList();
var editor = new FormEditor();
editor.BindPdf(document);
foreach (var field in fields)
{
document.Form.Delete(field);
editor.RemoveField(field.Name);
editor.DelListItem(field.Name, field.ToString());
}
document.Save(@"C://without_fields.pdf");
}
Am I doing something wrong? Cause none of these methods work for me…
files.zip (13.0 KB)
result.png (36.2 KB)