Hello,
I have been testing Aspose.Words for Java 1.6 regarding converting Microsoft Word files (.doc and .docx) into pdf.
I have noticed that plain text Word files are converted to pdf without problems but the file with mathematical equations are not converted at all. The following exception is thrown:
---------------------------------------------------------------------------------------------
File name: mathematicstest.docx
Exception: null
java.lang.NullPointerException
at java.lang.String$CaseInsensitiveComparator.compare(String.java:1217)
at java.lang.String$CaseInsensitiveComparator.compare(String.java:1211)
at java.util.TreeMap.getEntryUsingComparator(TreeMap.java:351)
at java.util.TreeMap.getEntry(TreeMap.java:322)
at java.util.TreeMap.get(TreeMap.java:255)
at asposewobfuscated.ëMR.ëU(Unknown Source)
at asposewobfuscated.ëMR.ëV(Unknown Source)
at asposewobfuscated.ëMR.ëZ(Unknown Source)
at asposewobfuscated.ëMH.ëZ(Unknown Source)
at asposewobfuscated.ëMH.ëZ(Unknown Source)
at asposewobfuscated.ëMH.ëZ(Unknown Source)
at com.aspose.words.ë99.ëX(Unknown Source)
at com.aspose.words.ë99.ëY(Unknown Source)
at com.aspose.words.ë99.layout(Unknown Source)
at com.aspose.words.ëAE.ëZQA(Unknown Source)
at com.aspose.words.ëAE.layout(Unknown Source)
at com.aspose.words.ëAE.ëZQA(Unknown Source)
at com.aspose.words.ëAE.layout(Unknown Source)
at com.aspose.words.ëAE.ëZQA(Unknown Source)
at com.aspose.words.ëAE.layout(Unknown Source)
at com.aspose.words.ë2M.ëy(Unknown Source)
at com.aspose.words.ëZSJ.(Unknown Source)
at com.aspose.words.ëZSL.ëZl(Unknown Source)
at com.aspose.words.ëZSM.(Unknown Source)
at com.aspose.words.ëZSW.ëZn(Unknown Source)
at com.aspose.words.ëUT.ëYh(Unknown Source)
at com.aspose.words.ëUT.ëfN(Unknown Source)
at com.aspose.words.ëUT.moveNext(Unknown Source)
at com.aspose.words.ëDK.ëZ(Unknown Source)
at com.aspose.words.Document.updatePageLayout(Unknown Source)
at com.aspose.words.Document.ëYs(Unknown Source)
at com.aspose.words.Document.ëhu(Unknown Source)
---------------------------------------------------------------------------------------------
The equations in the document are there as equation objects, which are stored as OLE objects to connect to the equation editor. Is it a feature of Word documents that Aspose.Words don’t support?
Please find the file that I used in my tests attached
Regards
Henryk