Browse our Products

Aspose.Slides for Java 20.11 Release Notes

New Features and Enhancements

SLIDESNET-36008Support to verify the presentation passwordFeature
SLIDESNET-42201Ability to test presentation password to openFeature
SLIDESNET-38917Ability to test presentation password to modifyFeature
SLIDESNET-42020Support for Map type chart in Aspose.SlidesFeature

Other Improvements and Changes

SLIDESJAVA-37956Use Aspose.Slides for Net 20.11 featuresEnhancement
SLIDESJAVA-38172Can’t convert pptx file. Class com.aspose.slides.PptxReadException: Unknown series typeBug
SLIDESJAVA-36406Ability to test presentation password to modifyFeature
SLIDESJAVA-38313Bullet indentation is disturbed on importing HTMLBug
SLIDESJAVA-37562Exception when doing renderToGraphicsBug
SLIDESJAVA-36885Exception on loading presentationBug
SLIDESJAVA-36901Embedded Font Issue when opening PowerPoint in MACEnhancement
SLIDESJAVA-38149Exception on exporting to PDFBug
SLIDESJAVA-38339Illegal operation occurredInvestigation

Public API Changes

3D Support Added

A new own cross-platform 3D engine was implemented in Slides 20.11. This new engine will now enable functionality to export and rasterize shapes and text with 3D effects. If in the previous versions of Slides shapes that have the 3D effect applied on them were rendered flat, now it is possible to render shapes with a full-fledged 3D.

In addition to that now it is possible to create shapes with 3D effects via Slides public API:

Presentation pres = new Presentation();
try {
    IAutoShape shape = pres.getSlides().get_Item(0).getShapes().addAutoShape(ShapeType.Rectangle, 200, 150, 200, 200);

    shape.getThreeDFormat().getCamera().setRotation(20, 30, 40);

    try {
        ImageIO.write(pres.getSlides().get_Item(0).getThumbnail(2, 2), "PNG", new File("sample_3d.png"));
    } catch (IOException e) { }"sandbox_3d.pptx", SaveFormat.Pptx);
} finally {
    if (pres != null) pres.dispose();

The rendered thumbnail will look like that:


Checking password to open via IPresentationInfo interface

checkPassword() method has been added to IPresentationInfo interface and PresentationInfo class. This method allows checking whether a presentation is protected by a password to open.

Method declaration:

 * Checks whether a password is correct for a presentation protected with open password.
 * IPresentationInfo info = PresentationFactory.getInstance().getPresentationInfo("pres.pptx");
 * boolean isPasswordCorrect = info.checkPassword("my_password");
 * @return True if the presentation is protected with open password and the password is correct and false otherwise.
 * @param password The password to check.
 * When the password is null or empty, this method returns false.
public boolean checkPassword(String password);

The example below demonstrates how to check a password to open a presentation:

IPresentationInfo info = PresentationFactory.getInstance().getPresentationInfo("pres.pptx");
boolean isPasswordCorrect = info.checkPassword("my_password");

getKeepTextFlat() and setKeepTextFlat() methods have been added to ITextFrameFormat

New methods getKeepTextFlat() and setKeepTextFlat() have been added to ITextFrameFormat interface.

Using these methods allows to keep text out of 3D scene entirely.

Properties declaration:

 * <p>
 * Returns or set keeping text out of 3D scene entirely.
 * Read/write {@code boolean}.
 * </p>
public boolean getKeepTextFlat();
 * <p>
 * Returns or set keeping text out of 3D scene entirely.
 * Read/write {@code boolean}.
 * </p>
public void setKeepTextFlat(boolean value);

The code snippet below demonstrates setting keep text out of 3D scene:

Presentation pres = new Presentation("Presentation.pptx");
try {
    IAutoShape shape = (AutoShape)pres.getSlides().get_Item(0).getShapes().get_Item(0);
} finally {
    if (pres != null) pres.dispose();

Partial support of Map charts has been added

Partial support of Map charts has been added. It means that you can create, edit, and save charts. Rendering options are limited since Microsoft Office uses Bing data provider for generating chart image. So any changes related to the Map charts made within Aspose.Slides won’t affect the rendering results. If the chart was loaded from an input file, the cached image from the PPTX package will be used for rendering purposes.

Following enum values have been added:


Following example shows how to create a map chart from scratch:

Presentation presentation = new Presentation();
try {
    //create empty chart
    IChart chart = presentation.getSlides().get_Item(0).getShapes().addChart(ChartType.Map, 50, 50, 500, 400, false);

    IChartDataWorkbook wb = chart.getChartData().getChartDataWorkbook();

    //Add series and few data points
    IChartSeries series = chart.getChartData().getSeries().add(ChartType.Map);
    series.getDataPoints().addDataPointForMapSeries(wb.getCell(0, "B2", 5));
    series.getDataPoints().addDataPointForMapSeries(wb.getCell(0, "B3", 1));
    series.getDataPoints().addDataPointForMapSeries(wb.getCell(0, "B4", 10));

    //add categories
    chart.getChartData().getCategories().add(wb.getCell(0, "A2", "United States"));
    chart.getChartData().getCategories().add(wb.getCell(0, "A3", "Mexico"));
    chart.getChartData().getCategories().add(wb.getCell(0, "A4", "Brazil"));

    //change data point value    
    IChartDataPoint dataPoint = series.getDataPoints().get_Item(1);

    //set data point appearance    
    dataPoint.getFormat().getFill().getSolidFillColor().setColor(Color.GREEN);"output.pptx", SaveFormat.Pptx);
} finally {
    if (presentation != null) presentation.dispose();
  • When you first open a presentation in PP it may take a few seconds to upload an image of the chart from the Bing service since we don’t provide the cached image.