You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@poi.apache.org by Tonni Tielens <to...@gmail.com> on 2014/08/04 11:34:55 UTC

How to add images to a XSLFTableCell in a XMLSlideShow?

I'm reading and modifying a .pptx file. In one slide I've added a XSLFTable
with some rows and cells. In some cells I want to add an icon (gif), while
still maintaining the background color.

How could I achieve this? I've tried this
<http://stackoverflow.com/questions/14495288/how-to-add-image-to-powerpoint-ppt-table-cell-using-apache-poi-hslf-xslf>
example,
but it adds the image as a background, thus losing the background color.

I've also tried adding images to the slide itself and changing the anchor
to the anchor of the XSLFTableCell, but all calls to XSLFTableCell's
getAnchor result in "IllegalStateException: CTShapeProperties was not
found."