本文整理了Java中org.apache.poi.xwpf.usermodel.XWPFDocument.getFootnotes()
方法的一些代码示例,展示了XWPFDocument.getFootnotes()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XWPFDocument.getFootnotes()
方法的具体详情如下:
包路径:org.apache.poi.xwpf.usermodel.XWPFDocument
类名称:XWPFDocument
方法名:getFootnotes
暂无
代码示例来源:origin: org.apache.poi/poi-ooxml
/**
* Gets the next ID number.
*
* @return ID number to use.
*/
public BigInteger nextId() {
List<BigInteger> ids = new ArrayList<BigInteger>();
for (XWPFAbstractFootnoteEndnote note : document.getFootnotes()) {
ids.add(note.getId());
}
for (XWPFAbstractFootnoteEndnote note : document.getEndnotes()) {
ids.add(note.getId());
}
int cand = ids.size();
BigInteger newId = BigInteger.valueOf(cand);
while (ids.contains(newId)) {
cand++;
newId = BigInteger.valueOf(cand);
}
return newId;
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi
/**
* Gets the next ID number.
*
* @return ID number to use.
*/
public BigInteger nextId() {
List<BigInteger> ids = new ArrayList<BigInteger>();
for (XWPFAbstractFootnoteEndnote note : document.getFootnotes()) {
ids.add(note.getId());
}
for (XWPFAbstractFootnoteEndnote note : document.getEndnotes()) {
ids.add(note.getId());
}
int cand = ids.size();
BigInteger newId = BigInteger.valueOf(cand);
while (ids.contains(newId)) {
cand++;
newId = BigInteger.valueOf(cand);
}
return newId;
}
代码示例来源:origin: stackoverflow.com
for (XWPFFootnote footnote : doc.getFootnotes()) {
sdts.addAll(extractSDTsFromBodyElements(footnote.getBodyElements()));
代码示例来源:origin: stackoverflow.com
if (document.getFootnotes().isEmpty()){
document.createFootnotes();
内容来源于网络,如有侵权,请联系作者删除!