拆分图片和表格内容处理

This commit is contained in:
wangchengjun
2022-04-12 11:49:10 +08:00
parent 01b39e10ad
commit 52d1d32ebb
2 changed files with 2 additions and 2 deletions
@@ -2261,7 +2261,7 @@ public class FileSpiltService {
FileOutputStream fos = new FileOutputStream(filepathandname);
fos.write(bytev);
String path = splitUrl+ "/" + imageName;
String imgCon = "<img class=\'wordImg\' src=\'" + path + "\'>";
String imgCon = path;
message.getItemsCondi().add(imgCon);
message.setItermsConditions(message.getItermsConditions() + imgCon);
itemsValList.add(getSplitItemsValObject(message.getId(), SplitFilePragraTypeEnum.IMG.getValue(),imgCon,message.getItemsCondi().size(),null));
@@ -181,7 +181,7 @@ public class ReadWordTable {
public String readTable(XWPFTable table) throws IOException {
// 表格行数
int tableRowsSize = table.getRows().size();
StringBuilder tableToHtmlStr = new StringBuilder("<table>");
StringBuilder tableToHtmlStr = new StringBuilder("<table border=\"1\">");
for (int i = 0; i < tableRowsSize; i++) {
tableToHtmlStr.append("<tr>");