We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Radio button selected programmatically appears differently

PdfFiles.zip (232.8 KB)
When setting a radio selection via code it appears to change the size of the checkmark to be very small. (Ends up in the top right corner in this example).
The checkmark appears correctly when opening in a reader from the original file or if the file is saved unmodified from Aspose.
See the first gender radios inputs in the attached files

        Aspose.Pdf.Document doc = new Aspose.Pdf.Document(@"c:\temp\Test.pdf");
        doc.Save(@"c:\temp\preresult.pdf"); // Radio checkmark continues to look correct
        var field = (Aspose.Pdf.Forms.RadioButtonOptionField)doc.Form.Fields.FirstOrDefault(f => f.FullName == "GENDER");
        var radioGroup = (Aspose.Pdf.Forms.RadioButtonField)field.Parent;
        radioGroup.Selected = 1;
        doc.Save(@"c:\temp\result.pdf"); // Radio checkmark is tiny

Looks like Check, Diamond, Square and Star button styles all do not behave correctly. Only Circle and Cross are working as expected


Thank you for contacting support.

Would you please share some screenshots as well because we are unable to notice the issue with Aspose.PDF for .NET 19.11. Generated PDF document has been attached for your kind reference. Result_19.11.pdf

Using Edge as the reader. It displays the checkbox check correctly when not modified via Aspose.


We are unable to notice difference in size when opening the PDF documents with Adobe Reader or Microsoft Edge. Attached is a comparison screenshot of what Microsoft Edge displays for both files. Comparison.jpg

In that comparison image you can see that the first checkmark (not the check box itself) is a small dot in the upper right corner.


Thank you for elaborating.

We have been able to reproduce the issue in our environment. A ticket with ID PDFNET-47386 has been logged in our issue management system for further investigation and resolution. The ticket ID has been linked with this thread so that you will receive notification as soon as the ticket is resolved.

We are sorry for the inconvenience.