hslf

How do you convert a .ppt file to html using Apache POI?

冷暖自知 提交于 2019-12-25 01:05:56
问题 I'm looking for a solution capable of producing a result as close to the original as possible, such as this example, which converts .doc rather than .ppt files. It should, ideally, take in a FileInputStream and output a String with the desired html code. I've come across this question, which posts code very similar to that on the Apache POI website, however it converts to an image and I've been unable to re-purpose it. Otherwise, there seems to be next to no code out there to do this. EDIT: I

Converting ppt to png using Apache poi

邮差的信 提交于 2019-12-01 08:15:40
Hello I am trying to use the Apache Poi framework to convert each slide of a ppt to an individual png. The problem is that some slides are deformed. For instance there is a slide where the background has a rainbow color to it. And Images that are on some slides do not appear at all on the .png file here is the code: FileInputStream is = new FileInputStream(args[0]); SlideShow ppt = new SlideShow(is); is.close(); Dimension pgsize = ppt.getPageSize(); Slide[] slide = ppt.getSlides(); for (int i = 0; i < slide.length; i++) { BufferedImage img = new BufferedImage(pgsize.width, pgsize.height,

Converting ppt to png using Apache poi

亡梦爱人 提交于 2019-12-01 06:47:41
问题 Hello I am trying to use the Apache Poi framework to convert each slide of a ppt to an individual png. The problem is that some slides are deformed. For instance there is a slide where the background has a rainbow color to it. And Images that are on some slides do not appear at all on the .png file here is the code: FileInputStream is = new FileInputStream(args[0]); SlideShow ppt = new SlideShow(is); is.close(); Dimension pgsize = ppt.getPageSize(); Slide[] slide = ppt.getSlides(); for (int i