We are evaluating the Aspose solution to convert HTML file to doc format. We find it takes less than 90 seconds to load the attached html file into document model in a windows environment. While we deploy it to a linux box, it takes more than 400 seconds doing the same.
In the beginning, we thought it might be the TrueType issue with linux, so we upload the whole windows truetype files to a folder and use code like FontSettings.getDefaultInstance().setFontsFolder(fontFolder,true); Unluckly, it doesn’t seem work. On the other hand, it is quite quick to load the generated doc file which is converted from the attached html file.
Code snippet is as below:
File file = new File(“456456test.html”);
FileInputStream fis = new FileInputStream(file);
Document doc = new Document(fis);