|
@@ -362,13 +362,13 @@ public class QuestionServiceImpl extends ServiceImpl<QuestionMapper, Question> i
|
|
|
buffer = wordExtractor.getText();
|
|
|
wordExtractor.close();*/
|
|
|
} else if (path.endsWith("docx")) {
|
|
|
- /* String htmlContent = "";
|
|
|
- InputStream in = file.getInputStream();*/
|
|
|
+ String htmlContent = "";
|
|
|
+ InputStream in = file.getInputStream();
|
|
|
|
|
|
- /* Document docF = new Document();
|
|
|
+ Document docF = new Document();
|
|
|
docF.loadFromStream(in,FileFormat.Docx);
|
|
|
docF.saveToFile("D:/wordtohtml.html", FileFormat.Html);
|
|
|
- docF.dispose();*/
|
|
|
+ docF.dispose();
|
|
|
|
|
|
|
|
|
InputStream is = file.getInputStream();
|