Browse our Products

Aspose.Slides for .NET 20.11 Release Notes

SLIDESNET-42195File corruption saving through Aspose.SlidesInvestigation
SLIDESNET-42128Support for caching PPTX using Aspose.SlidesInvestigation
SLIDESNET-39938Issue in generated resultInvestigation
SLIDESNET-42201Ability to test presentation password to openFeature
SLIDESNET-42020Support for Map type chart in Aspose.SlidesFeature
SLIDESNET-38917Ability to test presentation password to modifyFeature
SLIDESNET-36008Support to verify the presentation passwordFeature
SLIDESNET-42240Save presentation throws the ‘The method or operation is not implemented.’Bug
SLIDESNET-42239ODP gradient deserialization throws ArgumentNullExceptionBug
SLIDESNET-42236PPTX to PDF conversion: Aspose.Slides.PptxReadException: ‘Unknown series type’Bug
SLIDESNET-42211Chart missing in exported PDFBug
SLIDESNET-42209IOException is thrown when trying to analyze TXT file with PresentationFactory.GetPresentationInfoBug
SLIDESNET-42202Wrong background renderingBug
SLIDESNET-42199Chart doesn’t render properlyBug
SLIDESNET-42170Thumbnail improperly generated using Aspose.Slides for .NET 20.8Bug
SLIDESNET-42164API hangs infinitely on generating slide thumbnailBug
SLIDESNET-42163Sunburst chart creation fails if first branch contains less levels of nesting than the following.Bug
SLIDESNET-42162Bullet indentation is disturbed on importing HTMLBug
SLIDESNET-42141Generate wrong image when saving slide as jpgBug
SLIDESNET-42127Memory spike while saving PresentationBug
SLIDESNET-42118EMF text improperly rendered in exported PDFBug
SLIDESNET-42108Unable to save presentation to pdf with chart data that has row with numbers 85/15Bug
SLIDESNET-42106Can’t convert pptx file (PptxReadException: Unknown series type)Bug
SLIDESNET-42100Chart improperly rendered in exported PDFBug
SLIDESNET-42092Exception on loading Presentation fileBug
SLIDESNET-42047XmlException on exporting to PDFBug
SLIDESNET-41965In case of font is missing - no error message was displayedBug
SLIDESNET-40961Emf image improperly rendered in generated thumbnailBug
SLIDESNET-40686High memory consumption while loading and saving pptxBug
SLIDESNET-39779‘Some of the embedded fonts in your presentation cannot be installed’ message appears in saved presentationBug

Public API Changes

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:

using (Presentation presentation = new Presentation())
    //create empty chart
    IChart chart = presentation.Slides[0].Shapes.AddChart(ChartType.Map, 50, 50, 500, 400, false);
    IChartDataWorkbook wb = chart.ChartData.ChartDataWorkbook;

    //Add series and few data points
    IChartSeries series = chart.ChartData.Series.Add(ChartType.Map);
    series.DataPoints.AddDataPointForMapSeries(wb.GetCell(0, "B2", 5));
    series.DataPoints.AddDataPointForMapSeries(wb.GetCell(0, "B3", 1));    
    series.DataPoints.AddDataPointForMapSeries(wb.GetCell(0, "B4", 10));
    //add categories
    chart.ChartData.Categories.Add(wb.GetCell(0, "A2", "United States"));
    chart.ChartData.Categories.Add(wb.GetCell(0, "A3", "Mexico"));
    chart.ChartData.Categories.Add(wb.GetCell(0, "A4", "Brazil"));

    //change data point value    
    IChartDataPoint dataPoint = series.DataPoints[1];    
    dataPoint.ColorValue.AsCell.Value = "15";
    //set data point appearance    
    dataPoint.Format.Fill.FillType = FillType.Solid;
    dataPoint.Format.Fill.SolidFillColor.Color = Color.Green;

    presentation.Save("output.pptx", SaveFormat.Pptx);
  • 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.


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:

/// <summary>
/// Checks whether a password is correct for a presentation protected with open password.
/// </summary>
/// <param name="password">The password to check.</param>
/// <returns>
/// True if the presentation is protected with open password and the password is correct and false otherwise.
/// </returns>
/// <remarks>
/// When the password is null or empty, this method returns false.
/// </remarks>
bool CheckPassword(string password);

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

IPresentationInfo info = PresentationFactory.Instance.GetPresentationInfo("pres.pptx");
bool isPasswordCorrect = info.CheckPassword("my_password");

ITextFrameFormat.KeepTextFlat property has been added

A new property KeepTextFlat has been added to ITextFrameFormat interface.

Using this property allows to keep text out of 3D scene entirely.

Property declaration:

/// <summary>
/// Returns or set keeping text out of 3D scene entirely.
/// Read/write <see cref="bool"/>.
/// </summary>
bool KeepTextFlat { get; set; }

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

using (Presentation pres = new Presentation("Presentation.pptx"))
    IAutoShape shape = pres.Slides[0].Shapes[0] as AutoShape;
    if (shape != null)
        shape.TextFrame.TextFrameFormat.KeepTextFlat = true;