本文整理了Java中org.apache.poi.xslf.usermodel.XSLFSheet.importBlip()
方法的一些代码示例,展示了XSLFSheet.importBlip()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XSLFSheet.importBlip()
方法的具体详情如下:
包路径:org.apache.poi.xslf.usermodel.XSLFSheet
类名称:XSLFSheet
方法名:importBlip
[英]Import a picture data from another document.
[中]从另一个文档导入图片数据。
代码示例来源:origin: org.apache.poi/poi-ooxml
String relId = getSheet().importBlip(blipId, p.getSheet());
XmlCursor c = obj[0].newCursor();
String id = c.getAttributeText(new QName("http://schemas.openxmlformats.org/officeDocument/2006/relationships", "embed"));//selectPath("declare namespace r='http://schemas.openxmlformats.org/officeDocument/2006/relationships' $this//[@embed]");
String newId = getSheet().importBlip(id, p.getSheet());
c.setAttributeText(new QName("http://schemas.openxmlformats.org/officeDocument/2006/relationships", "embed"), newId);
c.dispose();
代码示例来源:origin: org.apache.poi/poi-ooxml
String blipId = blip.getEmbed();
String relId = getSheet().importBlip(blipId, s.getSheet());
blip.setEmbed(relId);
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi
String relId = getSheet().importBlip(blipId, p.getSheet());
XmlCursor c = obj[0].newCursor();
String id = c.getAttributeText(new QName("http://schemas.openxmlformats.org/officeDocument/2006/relationships", "embed"));//selectPath("declare namespace r='http://schemas.openxmlformats.org/officeDocument/2006/relationships' $this//[@embed]");
String newId = getSheet().importBlip(id, p.getSheet());
c.setAttributeText(new QName("http://schemas.openxmlformats.org/officeDocument/2006/relationships", "embed"), newId);
c.dispose();
代码示例来源:origin: org.openl.rules/org.openl.lib.poi.dev
@Override
void copy(XSLFShape sh){
super.copy(sh);
XSLFPictureShape p = (XSLFPictureShape)sh;
String blipId = p.getBlipId();
String relId = getSheet().importBlip(blipId, p.getSheet().getPackagePart());
CTPicture ct = (CTPicture)getXmlObject();
CTBlip blip = ct.getBlipFill().getBlip();
blip.setEmbed(relId);
CTApplicationNonVisualDrawingProps nvPr = ct.getNvPicPr().getNvPr();
if(nvPr.isSetCustDataLst()) {
// discard any custom tags associated with the picture being copied
nvPr.unsetCustDataLst();
}
}
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi
String blipId = blip.getEmbed();
String relId = getSheet().importBlip(blipId, s.getSheet());
blip.setEmbed(relId);
代码示例来源:origin: org.openl.rules/org.openl.lib.poi.dev
String blipId = blip.getEmbed();
String relId = getSheet().importBlip(blipId, s.getSheet().getPackagePart());
blip.setEmbed(relId);
内容来源于网络,如有侵权,请联系作者删除!