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

Free Support Forum - aspose.com

ArithmeticException in ODT to PDF conversion

Hi,

I have a problem converting an ODT file to PDF. When the conversion proceeds the following exception is thrown. It seems to be a bug in Aspose.Words.

Used library is Aspose.Words 14.5.0. Problem causing file is attached.

System.ArithmeticException: Function does not accept floating point Not-a-Number values.
at System.Math.Sign(Double value)
at .()
at ?? .( )
at ?? .(Int32& , Boolean )
at ?? .( ? , Int32 , Boolean , Boolean )
at ?? .( ? , Int32& )
at ?? .(?? , ? , Boolean )
at ?? .(?? , ? , Boolean )
at ?? .(?? , Boolean )
at .( , Boolean& )
at .( , Boolean& )
at .(? )
at . ?? ()
at .()
at .( )
at .( , ArrayList , ArrayList )
at .( , ArrayList , ArrayList )
at .( , ArrayList , ArrayList )
at . ()
at . ?? ( )
at ? .( )
at ? .( , )
at Aspose.Words.Document.(Int32 , ? )
at ? .( ? , ? )
at ? .? ?? ( ? )
at Aspose.Words.Document.(Stream , String , SaveOptions )
at Aspose.Words.Document.Save(String fileName, SaveOptions saveOptions)
at Aspose.Words.Document.Save(String fileName, SaveFormat saveFormat)
at YSoft.MobilePrint.Converters.AsposeConversion.AsposeWords.ConvertDocument(String inputFile, String outputFile) in c:\devel\mobileprintservice\src\AsposeConverter\AsposeWords.cs:line 29
at YSoft.MobilePrint.Converters.AsposeConversion.AsposeConverter.ConvertOrReturnError(String extension, String inputFile, String outputFile) in c:\devel\mobileprintservice\src\AsposeConverter\AsposeConverter.cs:line 48

Thank you in advance.

Martin S.

Hi Ondrej,

Thanks for your inquiry. I have tested the scenario and have not found the shared issue while using latest version of Aspose.Words for .NET 14.6.0. Please use the latest version of Aspose.Words for .NET 14.6.0.

Please let us know if you have any more queries.

Hi,

Thanks for your response. The library update fixed the problem.

Martin S.

Hi Martin,

Thanks for your feedback. Please feel free to ask if you have any question about Aspose.Words, we will be happy to help you.