News & Releases
|
|

Spire.Presentation for Java 3.4.3 supports setting the resolution when converting shapes to images
We're pleased to announce the release of Spire.Presentation for Java 3.4.3. This new version supports setting the resolution when converting shapes to images and getting the position of text in shape. Besides, some issues that occurred when converting PPT to PDF/Word and adding HTML are fixed successfully. See the content below for more details.
Here is a list of changes made in this release
| Category | ID | Description |
| New Feature | SPIREPPT-1089 | Supports setting the resolution when converting shapes to images.
Presentation ppt = new Presentation();
ppt.loadFromFile(input);
for (int i = 0; i < ppt.getSlides().get(0).getShapes().getCount(); i++)
{
String fileName = outputPath + "shapeToImage_demo"+i+".png";
BufferedImage image = ppt.getSlides().get(0).getShapes().saveAsImage(i,300,300);
ImageIO.write(image, "PNG", new File(fileName));
}
|
| New Feature | SPIREPPT-1135 | Supports getting the position of text in the shape.
Presentation ppt = new Presentation(); ppt.loadFromFile(inputFile); IAutoShape shape = (IAutoShape)ppt.getSlides().get(0).getShapes().get(0); Point2D location =shape.getTextFrame().getTextLocation(); String concent = "Coordinates of text in shape: x= " + (location.getX() - shape.getLeft()) + " y= " + (location.getY() - shape.getTop()); System.out.println(concent); |
| Bug | SPIREPPT-1094 | Fixes the issue that the chart was not correct when converting PPT to PDF/Word. |
| Bug | SPIREPPT-1098 SPIREPPT-1125 |
Fixes the issue that it failed to add Html content. |
| Bug | SPIREPPT-1110 | Fixes the issue that it failed to set font and color of legend of DOUGHNUT chart. |
| Bug | SPIREPPT-1111 | Fixes the issue that h1 tag bold style was missing after adding HTML. |
| Bug | SPIREPPT-1116 | Fixes the issue that it failed to save document after adding a chart. |
Click the link to download Spire.Presentation for Java 3.4.3: