Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

excel插入图片如果是嵌入单元格图片无法获取数据,浮动图片是可以的 #305

Open
dunkboy opened this issue Feb 26, 2021 · 0 comments

Comments

@dunkboy
Copy link

dunkboy commented Feb 26, 2021

poi的如下方法无法获取嵌入单元格的图片,返回xssfDrawing == null ctDrawing == nul

private void getAllPictures(Sheet sheet) {
if (sheet instanceof XSSFSheet) {
this.isXSSFSheet = true;
XSSFDrawing xssfDrawing = ((XSSFSheet)sheet).getDrawingPatriarch();
if (xssfDrawing == null) {
return;
}

public XSSFDrawing getDrawingPatriarch() {
CTDrawing ctDrawing = this.getCTDrawing();
if (ctDrawing != null) {
Iterator var2 = this.getRelationParts().iterator();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant