fix:
1.合同签章合同盖章
This commit is contained in:
parent
a7738dbc3a
commit
5ac851a07d
@ -30,12 +30,16 @@ public class ContactSignUtils {
|
|||||||
|
|
||||||
public static List<CTBookmark> getFileBookMarks(InputStream in) {
|
public static List<CTBookmark> getFileBookMarks(InputStream in) {
|
||||||
List<CTBookmark> list = new ArrayList<>();
|
List<CTBookmark> list = new ArrayList<>();
|
||||||
try (XWPFDocument doc = new XWPFDocument(in)) {
|
try {
|
||||||
for (XWPFParagraph paragraph : doc.getParagraphs()) {
|
try (XWPFDocument doc = new XWPFDocument(in)) {
|
||||||
list.addAll(paragraph.getCTP().getBookmarkStartList());
|
for (XWPFParagraph paragraph : doc.getParagraphs()) {
|
||||||
|
list.addAll(paragraph.getCTP().getBookmarkStartList());
|
||||||
|
}
|
||||||
|
} catch (IOException e) {
|
||||||
|
throw new RuntimeException(e);
|
||||||
}
|
}
|
||||||
} catch (IOException e) {
|
}catch (Exception e ){
|
||||||
throw new RuntimeException(e);
|
throw new KDBizException("无法解析文件 ");
|
||||||
}
|
}
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user