Throw exception about the same key have been added when call FontUtilities.SubsetFonts

Description

Aspose.PDF throw an exception when call FontUtilities.SubsetFonts.

Code

void Main()
{
	var doc = new Aspose.Pdf.Document(@"C:\Users\XCL\Desktop\test\source.pdf");
	doc.FontUtilities.SubsetFonts(Aspose.Pdf.FontSubsetStrategy.SubsetAllFonts);
}

Error Preview

image.png (74.9 KB)

Test File

source.pdf (4.0 MB)

@xucongli1989

We have logged this problem in our issue tracking system as PDFNET-53335. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

The issues you have found earlier (filed as PDFNET-53335) have been fixed in Aspose.PDF for .NET 23.2.