We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Intermitten Overflow Exception thrown By PdfGraphics.DrawImage

Thread ID:





99783 Jun 10,2011 11:36 AM Jun 13,2011 04:40 AM WPF 1
Tags: PDF
James Carter
Asked On June 10, 2011 11:36 AM


I get an Overflow Exception that occurs intermittently when calling PdfGraphics.DrawImage(). It seems to occur roughly 10% of the time. The call stack is below. Any help resolving this problem would truly be appreciated. Thanks.

Call Stack:

System.OverflowException: Arithmetic operation resulted in an overflow.
at Syncfusion.Pdf.Graphics.PdfBitmap.SaveAsRawImage()
at Syncfusion.Pdf.Graphics.PdfBitmap.SaveImageByFormat()
at Syncfusion.Pdf.Graphics.PdfBitmap.Save()
at Syncfusion.Pdf.Graphics.PdfBitmap.SetMask()
at Syncfusion.Pdf.Graphics.PdfBitmap.Save()
at Syncfusion.Pdf.Graphics.PdfGraphics.DrawImage(PdfImage image, Single x, Single y, Single width, Single height)
at Syncfusion.Pdf.Graphics.PdfGraphics.DrawImage(PdfImage image, PointF point, SizeF size)

SyncFusion Product version is 8.303.0.21

Geetha M [Syncfusion]
Replied On June 13, 2011 04:40 AM

Hi Jim,

Thank you for your interest in Syncfusion products.

I am afraid that I am not able to reproduce the problem. I have placed the test sample in the following link:

Could you please modify it and send back to me?



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.