Re: Image Blocks Text POI XSLF

2016-08-09 Thread Nick Burch

On Tue, 9 Aug 2016, Javen O'Neal wrote:

Slightly off topic...

On Aug 9, 2016 3:10 PM, "Andreas Beeker"  wrote:

Then you unzip both files and find out the differences in the xml files.
If you know which xml element to change, than you can modify it via the

xmlbeans object.

Do we have any tools to make this even quicker?


I think OOXMLPrettyPrint might do it, we've also got some format-specific 
dev tools that can sometimes help too


Nick

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



Re: Image Blocks Text POI XSLF

2016-08-09 Thread Javen O'Neal
Slightly off topic...

On Aug 9, 2016 3:10 PM, "Andreas Beeker"  wrote:
> Then you unzip both files and find out the differences in the xml files.
> If you know which xml element to change, than you can modify it via the
xmlbeans object.

Do we have any tools to make this even quicker?
I have written some python scripts that do the same thing described below.
Let me know if they'd be valuable here. I can rewrite


Re: Image Blocks Text POI XSLF

2016-08-09 Thread Andreas Beeker
Hi Rich,

in the XML-based formats (*.xlsx, *.pptx, *.docx) if you want to find out how a 
certain feature
works, you simply save a before and after version of the feature you want to 
achieve.
Then you unzip both files and find out the differences in the xml files.
If you know which xml element to change, than you can modify it via the 
xmlbeans object.

In your case, you'll notice that the order of the p:sp elements in the 
slideXXX.xml will be different.
As far as I can see, this modification won't work out of the box.
You would need to modify the _shapes in XSLFSheet and modify their 
corresponding entries
in the spTree (see initDrawingAndShapes()). This also applies similar to 
XSLFGroupShape.

If you provide a patch, I'm happy to review and commit it.
Otherwise just open a bug entry and I'll take care of it in the not too far 
future.

Andi



On 09.08.2016 22:55, Hu, Richuan wrote:
> Problem: Inserting an image to a slide blocks any text that I subsequently
> add as part of the title slide in the generated powerpoint. Dragging the
> image away would reveal the text.
>
> The solution inside the PowerPoint application would be to "Send to Back"
> the image, but does anyone know of an equivalent in POI XSLF?
>
> Thanks for your time,
> Rich
>




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



Image Blocks Text POI XSLF

2016-08-09 Thread Hu, Richuan
Problem: Inserting an image to a slide blocks any text that I subsequently
add as part of the title slide in the generated powerpoint. Dragging the
image away would reveal the text.

The solution inside the PowerPoint application would be to "Send to Back"
the image, but does anyone know of an equivalent in POI XSLF?

Thanks for your time,
Rich