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

Free Support Forum - aspose.com

Problem in converting *.docx into *.doc and *.PDF

Sample Function

public String convertIntoDocAndDocy(String docPath) throws Exception {

String returnPath=null;

LoadOptions lop=new LoadOptions();

lop.setLoadFormat(LoadFormat.DOCX);

InputStream stream = new FileInputStream(docPath );

Document doc = new Document(stream , lop);

stream.close();

returnPath=docPath.substring(0,docPath.lastIndexOf("."))+".doc";

try { doc.save(returnPath );

} catch (Exception e) {

// TODO Auto-generated catch block

e.printStackTrace();

} return returnPath;

}

ERROR CODE IS

java.lang.AbstractMethodError: javax.xml.parsers.DocumentBuilderFactory.setFeature(Ljava/lang/String;Z)V

at asposewobfuscated.ë3F.ëZM(Unknown Source) at asposewobfuscated.ë53.ë9(Unknown Source)

at com.aspose.words.ëZ2.ë8(Unknown Source)

at com.aspose.words.ëZG4.ëZQ(Unknown Source)

at com.aspose.words.ëZQ8.ëZzO(Unknown Source)

at com.aspose.words.ëZCV.ëZ(Unknown Source)

at com.aspose.words.ëZCV.ëZ(Unknown Source)

at com.aspose.words.ëZCV.ëZ(Unknown Source)

at com.aspose.words.ëMU.ë9l(Unknown Source)

at com.aspose.words.ëMU.(Unknown Source)

at com.aspose.words.Document.ëY(Unknown Source)

at com.aspose.words.Document.ëZ(Unknown Source)

at com.aspose.words.Document.(Unknown Source)

at com.aspose.words.Document.(Unknown Source)

at org.imf.dmfs.util.AsposeUtils.convertIntoPdffromDoc(AsposeUtils.java:115)

Hi,

Thanks for your inquiry. Please make sure that you're using latest version of Aspose.Words for Java (14.9.0):
http://www.aspose.com/community/files/72/java-components/aspose.words-for-java/default.aspx

In case the problem still remains, please attach your input Word document here for testing. We will investigate the issue on our end and provide you more information.

Best regards,