Hi all.
I have facing some troubles when I tried to save documents in HTML format using a docx document.
The following lines explains better what I’m telling:
System.out.println("-->Im going to create a new Document in: " + newPath);
Document doc = null;
doc = new Document(mTemplate.getAbsolutePath(), LoadFormat.DOCX, null);
doc.getSaveOptions().setHtmlExportXhtmlTransitional(true);
doc = new Document(newPath);
System.out.println("-->Creation of document was successful--");
doc.getSaveOptions().setHtmlExportXhtmlTransitional(true);
doc.save(temporalPath, SaveFormat.HTML);//when this line is executed systems seems hanging up
When doc.save is executed the systems spends a lot of time generating the html even has just a few lines. And the worst case is when I used a docx document that was previously converted from word2003 to word2007 just saving the file like docx instead of doc. The system never concludes the save operation. No exception or error is thrown or logged. I’m using the last version of ASPOSE Word so it suppose the have the support for docx files.
Do you have ant idea of what is happening?
Hi
Thanks for your request. Could you please attach your document for testing? I will investigate the problem and provide you more information.
Best regards.
Hi
Thank you for additional information. I cannot reproduce your problem on my side. Your document is converted fine on my side. Here is code I used for testing:
// Open document
Document doc = new Document("C:\\Temp\\Metrics+Authoring+2.docx");
doc.getSaveOptions().setHtmlExportXhtmlTransitional(true);
// Save output document
doc.save("C:\\Temp\\out.html", SaveFormat.HTML);
I did a new test localy and it works so I think the problem was related to network issue. Thanks for quick help. So just one more question, in the past you help me to solve an issue with JIT option (here the link) https://forum.aspose.com/t/103324 and you provide me a version by email of Aspose.Words.jdk14.jar.
Actually I have updated this version to the last of Aspose that includes docx support. could you please provide the last version but considering the requirement of JIT? Thanks in advance
Hi,
Your workaround for IBM JIT included in Aspose.Words for Java v.2.6.0. You can download it from https://releases.aspose.com/words/net . Please, reply is it works for you.
Best Regards,
Konstantin,
Can you please provide me with a NON optimized version of Aspose.Words for Java v. 2.7.0 and also for the Aspose.Words for Java v. 3.0.1? I need it asap since my cliente has faced some troubles with the normal version.
Thanks in advance,
Hi,
The optimization (you speaking about) is deleted starting from Aspose.Words for Java v. 2.6.0. So the problem is in something else. Please, provide me more info about your troubles. Or it is the same issue with html over network?
Best Regards,
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
Enables storage, such as cookies, related to analytics.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.