Presentation presentation =new Presentation();
try {
presentation.loadFromFile("形状不一致.pptx");
} catch (Exception e) {
throw new RuntimeException(e);
}
SlideCollection slides = presentation.getSlides();
byte[] bytes = slides.get(0).saveToSVG();
String outputFile="形状不一致.svg";
OutputStream outputStream= null;
try {
outputStream = new BufferedOutputStream(new FileOutputStream(outputFile));
} catch (FileNotFoundException e) {
throw new RuntimeException(e);
}
try {
outputStream.write(bytes);
outputStream.close();
} catch (IOException e) {
throw new RuntimeException(e);
}
//生成的svg 与原ppt页不一致
// spire for java 7.12.4