SampleFileHTML_Errorstack.7z (7.8 KB)
Aspose Words for JAVA : 21.12 is unable to process the provide input files [HTML format] where as the same Input file [attached] is getting processed with downgraded version of Aspose words for JAVA : 20.9.
Please find details of API used:
public static void ConvertPDFtoWordDocAdvanced()
{
Path HtmlFile = Paths.get(_dataDir.toString(), "Sample-Report.html");
Path txtFile = Paths.get(_dataDir.toString(), "Sample-Report.txt");
Document doc = new Document(HtmlFile)
doc.joinRunsWithSameFormatting()
doc.save(txtFile, SaveFormat.TEXT)
}
Please refer to attached input file and stack track error observed.