Free Support Forum - aspose.com

Converting HTML to word taking a long time to convert using aspose.word .net

Hi Team,
Converting HTML to word taking a long time to convert using aspose.word .net
1.That html document having 5000 hyperlinks and html file size 13 mb
–Html file taking a long time to load
– Conversion taking 15 - 20 minutes to complete
how to improve performance and any other ways.

Below sample coding we are using:
Aspose.Words.License license1 = new Aspose.Words.License();
license1.SetLicense(“Aspose.Total.lic”);
Aspose.Words.Document doc2 = new Aspose.Words.Document(@“D:\FileTest\Exe-714.html”);
doc2.Save(@“D:\FileTest\Exe-714Word1.docx”, Aspose.Words.SaveFormat.Docx);

@thiru1711

Please ZIP and attach your input Word document here for testing. We will investigate this issue and provide you information on it.

Hi @tahir.manzoor ,
Please find the attachment for sample documents,

Steps:
1.Word to html
2. HTMl to word

Below sample coding we are using:
Aspose.Words.License license1 = new Aspose.Words.License();
license1.SetLicense(“Aspose.Total.lic”);
Aspose.Words.Document doc2 = new Aspose.Words.Document(@“D:\FileTest\MaindocToHTML.html”); — This line taking long time
doc2.Save(@“D:\FileTest\HTML To Word.docx”, Aspose.Words.SaveFormat.Docx);

Sample docs.zip (649.4 KB)

@thiru1711

We have tested the scenario using the latest version of Aspose.Words for .NET 20.9 and have not found this issue. So, please use Aspose.Words for .NET 20.9.