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 2018/08/12 16:12:21 UTC
[Bug 62517] ArrayStoreException when running getShapes on slide of
XSLFSheet
https://bz.apache.org/bugzilla/show_bug.cgi?id=62517
Andreas Beeker <ki...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |WORKSFORME
OS| |All
Status|NEW |RESOLVED
--- Comment #1 from Andreas Beeker <ki...@apache.org> ---
Apart of the image1.wmf and oleObject1.bin containing a lot of empty space, I
had no problems with your template with the current 4.0.0-SNAPSHOT.
@Test
public void bug62517() throws IOException {
ZipSecureFile.setMinInflateRatio(0.001);
try (InputStream fis = new FileInputStream("Template.pptx");
XMLSlideShow ppt = new XMLSlideShow(fis)) {
XSLFSlide sld = ppt.getSlides().get(0);
XSLFTextShape ts = (XSLFTextShape)sld.getShapes().get(0);
ts.setText("not-a-template text");
XSLFAutoShape as = sld.createAutoShape();
as.setAnchor(new Rectangle2D.Double(100,100,100,100));
as.setShapeType(ShapeType.GEAR_9);
as.setFillColor(Color.RED);
try (FileOutputStream fos = new FileOutputStream("bla.pptx")) {
ppt.write(fos);
}
}
}
I don't understand what you mean by "remove the Object Type from Selection
Panel".
--
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