Hi,
Loading attached html in to words Document takes too long. The same i tried with PD4ML seems to be significantly quicker. Can you help understand why this is the case and how can i address this.
Below is the code snipped used. I referred Similar Post
Attached html document I tried to load.
download.zip (4.1 KB)
HtmlLoadOptions loadOptions = new HtmlLoadOptions();
loadOptions.setLoadFormat(LoadFormat.HTML);
loadOptions.setWebRequestTimeout(10);
loadOptions.setResourceLoadingCallback(new HandleResourceLoading());
Document document = new Document("C:\\Users\\ABC\\Downloads\\download.htm",loadOptions);
Regards
Anit
@nairanit25 Unfortunately, I cannot reproduce the problem on my side using the latest 23.4 version of Aspose.Words for Java. It takes less than second to convert the attached HTML to DOCX.
Hi @alexey.noskov,
Thanks for the reply. I just realised, when running in Debug mode and stepping through each line it takes much longer for Document load as compared to directly executing the code.
On a side note, I am trying to save it to PDF format. I see in the documentation, PDF is a supported Save format.
Regards
Anit
@nairanit25 Yes, PDF format is also supported as output file format. See our documentation to learn what file formats are supported:
https://docs.aspose.com/words/java/supported-document-formats/
Conversion to PDF also takes less then second on my side.
1 Like