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

Free Support Forum - aspose.com

PDF Radio Buttons Resizing on Flatten()

We have a PDF form which contains a number of radio buttons. The radio buttons are all the same size, but when we Flatten() the PDF the last radio button increases in size slightly. I have attempted to open and just resave the PDF as a new document and the radio button does not change size. It's only when I flatten the document that it changes size.

static void Main(string[] args)
{
License l = new License();
l.SetLicense("Aspose.Total.lic");
byte[] document = File.ReadAllBytes("PTS_Form_2014_v1.3a.pdf");
Document pdfDocument = new Document(new MemoryStream(document));
pdfDocument.Flatten();
FileStream fs = new FileStream("PTS_Form_Flattened.pdf", FileMode.Create);
pdfDocument.Save(fs);
}

Hi David,


Thanks for contacting support.

Can you please share the source PDF file so that we can test the scenario at our end. We are sorry for this inconvenience.

Source PDF and the flattened version are attached.

Hi David,


Thanks for sharing the resource files.

I have tested the scenario using Aspose.Pdf for .NET 9.1.0 and I am unable to notice any problem. For your reference, I have also attached the resultant PDF generated over my end. Can you please try using the latest release and in case you still face the same issue or you have any further query, please feel free to contact.