Hello,
We are getting exception while printing pdf using spire.pdf "An item with the same key has already been added". Following is the stack trace of the issue. This issue is sporadically reproduced.
We are using spire pdf 5.3.8.2046 version.
InnnerException: An item with the same key has already been added.
Stack Trace: at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at sprḌ.ᜄ()
at sprḌ.ᜁ(Single A_0)
at sprḌ.ᜂ(Single A_0)
at spr.ᜀ(Graphics A_0, spr᳒ A_1, Boolean A_2)
at spr.ᜁ(Graphics A_0, spr᳒ A_1, Boolean A_2)
at spr᳒.ᜀ(String A_0, sprḌ A_1, String A_2, Boolean A_3)
at spr᳒.ᜀ(String[] A_0, String A_1)
at spr᳒.ᜀ(sprỸ A_0)
at spr᳒.ᜆ(Boolean A_0)
at spr᳒.ᜥ()
at sprᝅ.ᜀ(Graphics A_0, spr᭛ A_1, spr᳒ A_2)
at spr᳒.ᜀ(sprᦕ A_0, sprᦕ A_1, RectangleF A_2, Int32 A_3, String A_4)
at spr᳒.ᜀ(sprᦕ A_0, RectangleF A_1, String A_2)
at spr᳒.ᜀ(sprᤳ A_0)
at spr᳒.ᜆ(Boolean A_0)
at spr᳒.ᜥ()
at sprោ.ᜀ(PrintPageEventArgs A_0, PdfPageBase A_1, RectangleF A_2)
at sprោ.ᜂ(PrintPageEventArgs A_0)
at sprោ.ᜀ(Object A_0, PrintPageEventArgs A_1)
at System.Drawing.Printing.PrintDocument.OnPrintPage(PrintPageEventArgs e)
at System.Drawing.Printing.PrintDocument._OnPrintPage(PrintPageEventArgs e)
at System.Drawing.Printing.PrintController.PrintLoop(PrintDocument document)
at System.Drawing.Printing.PrintController.Print(PrintDocument document)
at System.Drawing.Printing.PrintDocument.Print()
at sprោ.ᜅ()
at Spire.Pdf.PdfDocument.Print()
Can you please look into this issue?
Thanks and Regards,
Bharat Bodage