We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

OverflowException when converting .Html file to .Pdf

We get this OverflowException when converting some .Html files to .Pdf:
System.OverflowException: ‘Negating the minimum value of a twos complement number is invalid.’

Our company is using Aspose.HTML version 21.9


Could you please ZIP and attach your input HTML here for testing? We will investigate the issue and provide you more information on it.

Thank you for your quick response. Here is the file:

015b83fd-b3ab-4d05-b4e0-b511580214a0.zip (3.9 KB)


We have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as HTMLNET-3620. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.

Do you have any update on this case? Our clients keep getting this exception.


Your issue has been resolved and its fix is available in the latest version of Aspose.HTML for .NET 22.3.

The issues you have found earlier (filed as HTMLNET-3620) have been fixed in Aspose.HTML for .NET 22.3.