Free Support Forum - aspose.com

An item with the same key has already been added

Hi,

we are getting “An item with the same key has already been added” exception while upgrading the pdf file to PDF_A_2A format.

//code snippet//

var doc=sourceFilePath; // source file is in PdfFormat.v_1_7 format
doc.Convert(new MemoryStream(),PdfFormat.PDF_A_2A,ConvertErrorAction.Delete); // throwing the exception

Regards,
Kiran

@ITCUser

Thank you for contacting support.

Would you please share the source file with us so that we may try to reproduce and investigate it in our environment.