Exception occurs while adding Text in PDF using Aspose.PDF


Why am I getting exceptions when I try to add a new TextFragment?


a.‚‰ž occurred
HResult=-2146232832
Message=Glyph with ID = 3242 already exists in Coverage list
Source=Aspose.Pdf
StackTrace:
at . . ( , Int32 )
InnerException:
HResult=-2147024809
Message=An entry with the same key already exists.
Source=System
StackTrace:
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.TreeSet`1.AddIfNotPresent(T item)
at System.Collections.Generic.SortedDictionary`2.Add(TKey key, TValue value)
at . . ( , Int32 )
InnerException:



Hi Dirk,


Thanks for contacting support.

Can you please share the resource PDF file and code snippet, so that we can test the scenario in our environment. We are sorry for your inconvenience.