Exception ‘An entry with the same key already exists’ during PDF text extraction

Hi guys,
i receive mentioned exception on attached file when following code used:

var doc = new Aspose.Pdf.Document(file);
foreach (var page in doc.Pages)
var textFragmentAbsorber = new Aspose.Pdf.Text.TextFragmentAbsorber();
page.Accept(textFragmentAbsorber); <-- exception thrown from here

Rechnung_WBS-Learnspace_ZHAW_Zuerich1.pdf (150.5 KB)

Please, could you check it out?

Thank you and best regards!


We have also observed the same exception at our side while testing the scenario with Aspose.PDF for .NET 20.11. Hence, an issue has been generated under the ticket ID PDFNET-49148 in our issue management system. We will further look into its details and keep you informed about its rectification status. Please be patient and spare us some time.

We are sorry for the inconvenience.

1 Like

please, any update here?

Thanks and cheers!


We are afraid that earlier logged issue is not yet resolved. Please note that it will be investigated and resolved on a first come first serve basis. We will surely inform you as soon as we have some definite updates regarding its resolution. Please spare us some time.

We are sorry for the inconvenience.

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