- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.apache.poi.xwpf.usermodel.XWPFPicture.getPictureData()
方法的一些代码示例,展示了XWPFPicture.getPictureData()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XWPFPicture.getPictureData()
方法的具体详情如下:
包路径:org.apache.poi.xwpf.usermodel.XWPFPicture
类名称:XWPFPicture
方法名:getPictureData
[英]Get the PictureData of the Picture, if present. Note - not all kinds of picture have data
[中]获取图片数据,如果有。注:并非所有类型的图片都有数据
代码示例来源:origin: apache/tika
XWPFPictureData data = picture.getPictureData();
if (data != null) {
AttributesImpl attr = new AttributesImpl();
代码示例来源:origin: stackoverflow.com
for ( XWPFRun run : par.getRuns() ) {
for ( XWPFPicture picture : run.getEmbeddedPictures() ) {
pictureData = picture.getPictureData();
byte[] img = pictureData.getData();
String fileName = pictureData.getFileName();
代码示例来源:origin: stackoverflow.com
XWPFDocument doc = new XWPFDocument(new FileInputStream(fileName));
List<XWPFTable> table = doc.getTables();
for (XWPFTable xwpfTable : table) {
List<XWPFTableRow> row = xwpfTable.getRows();
for (XWPFTableRow xwpfTableRow : row) {
List<XWPFTableCell> cell = xwpfTableRow.getTableCells();
for (XWPFTableCell xwpfTableCell : cell) {
if (xwpfTableCell != null) {
System.out.println(xwpfTableCell.getText());
String s = xwpfTableCell.getText();
for (XWPFParagraph p : xwpfTableCell.getParagraphs()) {
for (XWPFRun run : p.getRuns()) {
for (XWPFPicture pic : run.getEmbeddedPictures()) {
byte[] pictureData = pic.getPictureData().getData();
System.out.println("picture : " + pictureData);
}
}
}
}
}
}
}
代码示例来源:origin: stackoverflow.com
XWPFDocument doc = new XWPFDocument(new FileInputStream(fileName));
List<XWPFTable> table = doc.getTables();
for (XWPFTable xwpfTable : table) {
List<XWPFTableRow> row = xwpfTable.getRows();
for (XWPFTableRow xwpfTableRow : row) {
List<XWPFTableCell> cell = xwpfTableRow.getTableCells();
for (XWPFTableCell xwpfTableCell : cell) {
if (xwpfTableCell != null) {
System.out.println(xwpfTableCell.getText());
String s = xwpfTableCell.getText();
for (XWPFParagraph p : xwpfTableCell.getParagraphs()) {
for (XWPFRun run : p.getRuns()) {
for (XWPFPicture pic : run.getEmbeddedPictures()) {
byte[] pictureData = pic.getPictureData().getData();
System.out.println("picture : " + pictureData);
}
}
}
}
}
}
}
代码示例来源:origin: stackoverflow.com
if(pictures != null && !pictures.isEmpty()) {
for (XWPFPicture picture : pictures) {
XWPFPictureData data = picture.getPictureData();
if(data != null) {
result.add(data);
代码示例来源:origin: com.github.lafa.tikaNoExternal/tika-parsers
XWPFPictureData data = picture.getPictureData();
if (data != null) {
AttributesImpl attr = new AttributesImpl();
代码示例来源:origin: org.apache.tika/tika-parsers
XWPFPictureData data = picture.getPictureData();
if (data != null) {
AttributesImpl attr = new AttributesImpl();
本文整理了Java中org.apache.poi.xwpf.usermodel.XWPFPicture.getPictureData()方法的一些代码示例,展示了XWPFPicture.getPict
本文整理了Java中org.apache.poi.xslf.usermodel.XSLFPictureShape.getPictureData()方法的一些代码示例,展示了XSLFPictureSha
我是一名优秀的程序员,十分优秀!