Aspose.Slides for .NET 21.9 Release Notes

KeySummaryCategoryRelated Documentation
SLIDESNET-42502Hindi text is not displayed when converting PPTX to PDFInvestigation<>
SLIDESNET-42645.NET5 SupportFeature
SLIDESNET-38994Getting automatic table cells fill colorFeature
SLIDESNET-42579Getting the number of worksheets in a workbookEnhancement
SLIDESNET-40508Slow slide cloning performance in Aspose.SlidesEnhancement
SLIDESNET-42763Text labels in EMF image are missing when converting presentation to PDFBug<>
SLIDESNET-42760Animation effect changed (text color) after cloningBug
SLIDESNET-42756Can’t parse coordinate exception on HTML fragment addBug
SLIDESNET-42730PPTX conversions hang and throw StackOverflowExceptionBug
SLIDESNET-42728Chart.AlternativeTextTitle property does not workBug
SLIDESNET-42721Chart line is continuous when converting PPTX to PNGBug
SLIDESNET-42720Slide content is getting mirrored left-right when converting to PNGBug
SLIDESNET-42718Text missing in generated PDF when using FontsLoader.loadExternalFontBug
SLIDESNET-42715Shadows are lost after converting PPTX to PNGBug<>
SLIDESNET-42707Duotone effective exception on accessing colorBug
SLIDESNET-42702Exception on accessing solid fill colorBug
SLIDESNET-42685Text becomes non-bold after converting presentation to SVGBug
SLIDESNET-42676EMF images are inverted after rendering slides to GraphicsBug
SLIDESNET-42663EMF images are not showing when converting PPTX to PDFBug
SLIDESNET-42617Text effects are missing in generated PDFBug
SLIDESNET-42613Text and shadow improperly rendered in thumbnailBug
SLIDESNET-40804Text shadow effect improperly rendered in generated PDFBug
SLIDESNET-40688Thumbnails not properly generated from pptxBug
SLIDESNET-39769Slide Content missing on saving pptBug
SLIDESNET-38977WordArt style of text is missing after saving pptBug
SLIDESNET-38976SmartArt is missing after saving pptBug
SLIDESNET-37979Missing Smart Art on Notes MasterBug
SLIDESNET-37675Black shape borders appears after resaving of ppt presentationBug
SLIDESNET-37646IndexOutOfRangeException on loading ODP presentationBug
SLIDESNET-37371SmartArt shapes lost after load and saveBug
SLIDESNET-36786Improper Odp resavingBug
SLIDESNET-36693Table cells fill type returns NotDefinedBug
SLIDESNET-36688Animation sequence changed after portion text changedBug
SLIDESNET-35869System exception is thrown on exporting PPTX to PDFBug
SLIDESNET-34170Wrong text rendering in thumbnails and PdfBug

Public API Changes

HTML5 Export Support

We implemented support for HTML5 Export in Slides (enhanced customizable version of HTML5 Support).

The new Html5 value has been added to SaveFormat enumerations. This value represents the HTML5 format for exporting.

The code snippet below demonstrates the saving presentation in HTML5 operation:

using (Presentation presentation = new Presentation("SomePresentation.pptx"))
    presentation.Save("index.html", SaveFormat.Html5);

Using the Html5Options configuration, you can export a presentation containing slides transitions, animations, and shapes animations to HTML5:

using (Presentation pres = new Presentation("demo.pptx"))
    pres.Save("demo-animate.html", SaveFormat.Html5, new Html5Options()
        AnimateShapes = true,
        AnimateTransitions = true

Access to the ChartDataWorksheetCollection has been added

To provide access to worksheets, we added the IChartDataWorksheetCollection interface, ChartDataWorksheetCollection class, and IChartDataWorkbook.Worksheets property.

using (Presentation pres = new Presentation())
    IChart chart = pres.Slides[0].Shapes.AddChart(ChartType.Pie, 50, 50, 400, 500);
    IChartDataWorkbook workbook =  chart.ChartData.ChartDataWorkbook;
    for (int i = 0; i < workbook.Worksheets.Count; i++)

IAccessiblePVIObject interface has been added

IAccessiblePVIObject interface has been added to Aspose.Slides namespace. It represents a type that can be a source of an effective version of its data.

IAccessiblePVIObject declaration:

/// <summary>
/// Represents a type that can return corresponding effective data with the inheritance applied.
/// </summary>
/// <typeparam name="T">Type of effective data.</typeparam>
public interface IAccessiblePVIObject<T> where T : class
    /// <summary>
    /// Gets effective data with the inheritance applied.
    /// </summary>
    /// <returns>An effective data object.</returns>
    T GetEffective();

Currently, all effect types from the Aspose.Slides.Effects namespace implement the IAccessiblePVIObject interface—and this means you can get effective values for effects with styled colors resolved.

This code demonstrates an operation where we added a picture for a slide background, added Duotone effect with styled colors, and then we got the effective duotone colors with which the background will be rendered:

using (Presentation presentation = new Presentation())
    IPPImage backgroundImage = presentation.Images.AddImage(Image.FromFile("someimage.png"));

    presentation.Slides[0].Background.Type = BackgroundType.OwnBackground;
    presentation.Slides[0].Background.FillFormat.FillType = FillType.Picture;
    presentation.Slides[0].Background.FillFormat.PictureFillFormat.Picture.Image = backgroundImage;

    IDuotone duotone = presentation.Slides[0].Background.FillFormat.PictureFillFormat.Picture.ImageTransform

    duotone.Color1.ColorType = ColorType.Scheme;
    duotone.Color1.SchemeColor = SchemeColor.Accent1;
    duotone.Color2.ColorType = ColorType.Scheme;
    duotone.Color2.SchemeColor = SchemeColor.Dark2;

    IDuotoneEffectiveData duotoneEffective = duotone.GetEffective();

    Console.WriteLine("Duotone effective color1: " + duotoneEffective.Color1);
    Console.WriteLine("Duotone effective color2: " + duotoneEffective.Color2);