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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Intermitten Overflow Exception thrown By PdfGraphics.DrawImage

Thread ID:





99783 Jun 10,2011 03:36 PM UTC Jun 13,2011 08:40 AM UTC WPF 1
Tags: PDF
James Carter
Asked On June 10, 2011 03:36 PM UTC


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 08:40 AM UTC

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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon 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.Close Icon