Re: Image Blocks Text POI XSLF
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
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
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
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
Re: [Bug 57835] New: XSLFSlide.importContent fails to create valid slide with Charts and Notes in slide
I am also experiencing this bug.poi version is 3.15-beta2 XMLSlideShow pptx = new XMLSlideShow(new FileInputStream(PPT_TEMPLATE)); XSLFSlide slide = pptx.getSlides()[0]; pptx.createSlide().importContent(slide);OutputStream out = new FileOutputStream("output/pie-chart-demo-output.pptx"); pptx.write(out);out.close();when I open the pie-chart-demo-output.pptx,there will be a problem to fix. And fixing over,the copy slide disappears.Is Your problem solved? How to do ? Help me.Many thanks. -- View this message in context: http://apache-poi.1045710.n5.nabble.com/Bug-57835-New-XSLFSlide-importContent-fails-to-create-valid-slide-with-Charts-and-Notes-in-slide-tp5718525p5724344.html Sent from the POI - Dev mailing list archive at Nabble.com.