Conversion from HtmlCode to doc seem to be very slow

Hi,
I am converting my html code to docx file format using aspose.word for java, but its seem to be very slow almost its taken 7-8min.

Working Environment Details:
operating system: Window XP,
jdk : jdk 6

Code :-

public static void convertHtmlToDoc(){

Document doc;
try {
doc = new Document(“http://meritstudents.com/html/Aspose_DocToHTML.html”);

doc.save(“F:\nitin\modules\Aspose\testing\data\ouptut1.docx”);

} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}

Hi Nitin,

Thanks for your inquiry. Could you please attach your input HTML document here for testing? I will investigate the issue on my side and provide you more information.

Why not. Please attachment.

Hi Nitin,

Thanks for sharing the document. I have tested the scenario at Windows XP, JDK 6 and have not
found the shared issue. The Html to Docx conversion takes around 4 seconds at my side. Could you please test the same scenario
at some other machines?

Moreover, It
is quite difficult to answer such questions because CPU performance and
memory usage all depend on complexity and size of the documents you are
loading/generating.


In
terms of memory, Aspose.Words does not have any limitations. If you’re
loading huge Word documents into Aspose.Words’ DOM, more memory would be
required. This is because during processing, the document needs to be
held wholly in memory. Usually, Aspose.Words needs 10 times more memory
than the original document size to build a DOM in the memory.