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 2014/05/13 14:32:53 UTC
[Bug 56519] New: XSLFSlide.draw is not working with text embeded in
PPTX
https://issues.apache.org/bugzilla/show_bug.cgi?id=56519
Bug ID: 56519
Summary: XSLFSlide.draw is not working with text embeded in
PPTX
Product: POI
Version: unspecified
Hardware: PC
Status: NEW
Severity: major
Priority: P2
Component: HSLF
Assignee: dev@poi.apache.org
Reporter: nirbhay@ymail.com
I tried converting slides into png.
It exported png, but the exported png contains only background. It is not
rendering text in it, also the exported background scale is too big that only
1/4 of the image is rendered as png.
Attached is the PPTX and the java code I am using.
//java code
FileInputStream is = new FileInputStream("KEY02.pptx");
XMLSlideShow ppt = new XMLSlideShow(is);
is.close();
Dimension pgsize = ppt.getPageSize();
XSLFSlide[] slide = ppt.getSlides();
for (int i = 0; i < slide.length; i++) {
BufferedImage img = new BufferedImage(pgsize.width, pgsize.height,
BufferedImage.TYPE_INT_RGB);
Graphics2D graphics = img.createGraphics();
//clear the drawing area
graphics.setPaint(Color.white);
graphics.fill(new Rectangle2D.Float(0, 0, pgsize.width,
pgsize.height));
//render
slide[i].draw(graphics);
//save the output
FileOutputStream out = new FileOutputStream("slide-" + (i + 1) +
".png");
javax.imageio.ImageIO.write(img, "png", out);
out.close();
}
--
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
[Bug 56519] XSLFSlide.draw is not working with text embeded in PPTX
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56519
Nirbhay K <ni...@ymail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|HSLF |XSLF
Version|unspecified |3.10
OS| |All
--
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
[Bug 56519] XSLFSlide.draw is not working with text embeded in PPTX
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56519
Nirbhay K <ni...@ymail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
OS| |All
--- Comment #1 from Nirbhay K <ni...@ymail.com> ---
It is more than 2 mb. So I have uploaded PPTX it to my dropbox.
https://www.dropbox.com/s/j52s2e6a4eieavh/KEY02.pptx
--
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
[Bug 56519] XSLFSlide.draw is not working with text embeded in PPTX
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56519
Nirbhay K <ni...@ymail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
OS|All |Mac OS X 10.9
--
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
[Bug 56519] XSLFSlide.draw is not working with text embeded in PPTX
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56519
--- Comment #2 from Nirbhay K <ni...@ymail.com> ---
When I save it as powerpoint 97-2004 format, and use HSFL module to render png,
it works like a charm.
--
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