You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2013/02/13 20:13:06 UTC

[Bug 49765] addPictures() not displaying Image in XWPF

https://issues.apache.org/bugzilla/show_bug.cgi?id=49765

Matti Bickel <ka...@cat0.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW

--- Comment #27 from Matti Bickel <ka...@cat0.de> ---
Can't see why this issue was closed NEEDINFO?

I tested with the last 3.9 release and the issue persists using
XWPFRun.addPicture()

The image data is written quite fine, BUT then the <pic:pic /> element is not
actually filled with content, corrupting the written file.

Using the code from comment 26 I was able to insert the picture just fine.
AFAIK all that's different is that the whole block is passed to
XmlFactory.parse instead of filling it programmatically? If that helps, the
CTPicture returned from getCTPictures().get(0) (XWPFRun.java, line 706) lacks a
non-null parent field (shouldn't it point to the <a:graphicData>?).

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org