FlattenAllFields() remove duplicates

If you use Form.FlattenAllFields() and your pdf form has duplicate field names, this method will remove the data from the duplicated field.

My work around is:
foreach (var field in pdfDoc.FieldNames)
pdfDoc.FlattenField(field);

@ucfsdev

Would you please share your sample PDF document with us so that we can test the scenario in our environment and address it accordingly.

Can you provide me with an email address?

@ucfsdev

You can please share the requested file in a private message in case you do not want to send it in public forum. Please click over the username and press Blue Message Button in the popup to send a private message.