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

Free Support Forum - aspose.com

Value was either too large or too small for a decimal


While saving the html file into pdf using aspose.pdf API, we are getting “Value was too large or too small for a decimal.”. This issue issue is coming for few of the .html files.

// code snippet //

HtmlLoadOptions options=new HtmlLoadOptions();
var doc=new Document(sourceFilePath,options); // throwing exception



Thank you for contacting support.

Would you please share sample HTML file by zipping it, so that we may try to reproduce and investigate it in our environment.