Aspose.Slides.NET 16.9.0

Aspose.Slides for .NET

Aspose.Slides is a PowerPoint management library for working with Microsoft PowerPoint files without using Microsoft PowerPoint. It allows developers to work with PPT, PPS, POT, PPTX, PPSX, POTX and ODP files on ASP.NET web applications, web services and Windows applications.

There is a newer version of this package available.
See the version list below for details.
Install-Package Aspose.Slides.NET -Version 16.9.0
dotnet add package Aspose.Slides.NET --version 16.9.0
<PackageReference Include="Aspose.Slides.NET" Version="16.9.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Aspose.Slides.NET --version 16.9.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

SLIDESNET-36283 - Support for adding and removing custom XML parts in presentation using Aspose.Slides
SLIDESNET-34302 - Support for HandoutMaster in PPT
SLIDESNET-32049 - Setting chart data range using Aspose.Slides
SLIDESNET-37890 - Text is improperly rendered in generated thumbnail
SLIDESNET-37889 - Wrong line series labels in resaving pptx presentation
SLIDESNET-37827 - Parenthesis direction is changed after saving ppt
SLIDESNET-37825 - Slides Bullets are changed after saving ppt
SLIDESNET-37824 - Slide Background changes after saving ppt
SLIDESNET-37820 - Punctuation marks are misplaced after loading and saving a ppt
SLIDESNET-37819 - Slide shadow gone after saving ppt
SLIDESNET-37818 - Angel for slides is changed after saving ppt
SLIDESNET-37817 - Background color Changed after saving ppt
SLIDESNET-37812 - Background color blending alignments changing after transforming to PDF
SLIDESNET-37803 - Slide color changes while converting pptx to svg
SLIDESNET-37802 - Generating slide thumbnail process hangs on slide 35
SLIDESNET-37800 - Setting Embedded Aspose.Slides license fail when using Application through Crypto Obfuscator
SLIDESNET-37797 - Background is improperly rendered in generated PDF and thumbnails
SLIDESNET-37792 - Background Color changes after saving ppt
SLIDESNET-37790 - Notes Page view corrupted after saving ppt
SLIDESNET-37763 - Legend text partially missing in the generated thumbnail
SLIDESNET-37758 - Text has bold and italic styles after exporting presentation to ppt
SLIDESNET-37665 - PPT to PDF conversion content are missing
SLIDESNET-37568 - Issue while reading slide notes
SLIDESNET-37461 - Font changed to Wingdings on ppt load and save
SLIDESNET-37447 - MasterNotesSlide returns null for ppt files
SLIDESNET-37446 - MasterNotesSlide returns null for ppt files
SLIDESNET-37392 - Line chart is incorrectly rendered in generated thumbnail of slide with chart
SLIDESNET-37360 - Different shape width in generated pdf
SLIDESNET-37356 - Incorrect text wrap in generated pdf
SLIDESNET-37348 - ArgumentException while loading a ppt
SLIDESNET-37344 - Text formatting lost when saving PPT
SLIDESNET-37121 - Gradient and text alignment changed on presentation load and save
SLIDESNET-36676 - Background changed on presentation load and save
SLIDESNET-36633 - Slides notes are displayed in top left on saving presentation
SLIDESNET-35728 - Master notes slide returns null
SLIDESNET-34017 - Series label count returns 0 for already added labels to show series values
SLIDESNET-33920 - Chart.CategoryAxis return null for ScatterChart

Public API Changes

Interface ICustomXmlPart and class CustomXmlPart have been added

Interface Aspose.Slides.ICustomXmlPart and related class Aspose.Slides.CustomXmlPart have been added. It represents one custom xml part and provides methods to get or set xml content, used schemas and id.
Interface ICustomXmlPartCollection and class CustomXmlPartCollection have been added

Interface Aspose.Slides.ICustomXmlPartCollection and related class Aspose.Slides.CustomXmlPartCollection have been added. It represents a collection of custom xml parts and provides methods to get, create and delete items.
Property EffectFormat has been added to IBackground and Background

Property EffectFormat has been added to interface Aspose.Slides.IBackground and class Aspose.Slides.Background for specifying effects of slide background.

Code snippet:

using (Presentation pres = new Presentation())
{
    IBackground background = pres.Slides[0].Background;
    background.Type = BackgroundType.OwnBackground;

    // Set slide background to Solid color
    background.FillFormat.FillType = FillType.Solid;
    background.FillFormat.SolidFillColor.Color = Color.Cornsilk;

    // Add shadow to slide
    background.EffectFormat.EnableOuterShadowEffect();
    IOuterShadow shadow = background.EffectFormat.OuterShadowEffect;
    shadow.ShadowColor.Color = Color.Chocolate;
    shadow.Distance = 15.0;
    shadow.Direction = 45f;

    pres.Save(path + "out.pptx", SaveFormat.Pptx);
}

Property ICustomData.CustomXmlParts has been added

Property Aspose.Slides.ICustomData.CustomXmlParts has been added. It represents a collection of custom xml parts associated with the corresponding ICustomData instance.

using(Presentation pres = new Presentation())
{
   pres.Slides[0].CustomData.CustomXmlParts.Add(GetXmlStringSample("John Doe")); //add new custom xml to slide custom data
   pres.Save(@"out.pptx", SaveFormat.Pptx);
}

private static string GetXmlStringSample(string name)
{
   string xmlString =
       "<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
       "<employees xmlns=\"http://schemas.test.com/sample\">" +
           "<employee>" +
               "<name>" + name + "</name>" +
           "</employee>" +
       "</employees>";
   return xmlString;
}

Property IPresentation.AllCustomXmlParts has been added

Property Aspose.Slides.IPresentation.AllCustomXmlParts has been added. It returns all custom xml parts contained in the presentation.

//Sample for clear all custom xml parts from presentation
using (Presentation pres = new Presentation("PresentationWithCustomXml.pptx"))
{
   foreach (ICustomXmlPart item in pres.AllCustomXmlParts)
   {
       item.Remove();
   }
   pres.Save("out.pptx", SaveFormat.Pptx);
}

SetRange method has been added to interface IChartData and class ChartData

Method SetRange has been added to interface Aspose.Slides.Charts.IChartData and class Aspose.Slides.Charts.ChartData. It allows to set data range with cells formula. Series and categories will be updated based on new data range.

using (Presentation pres = new Presentation())
{
   IChart chart = pres.Slides[0].Shapes.AddChart(ChartType.Line, 10, 10, 400, 300);
   chart.ChartData.SetRange("Sheet1!A1:B4");
   pres.Save("output.pptx", Export.SaveFormat.Pptx);
}

Dependencies

This package has no dependencies.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
19.6.0 1,082 6/25/2019
19.5.0 2,314 5/31/2019
19.4.0 3,552 4/26/2019
19.3.0 2,223 4/3/2019
19.2.0 6,241 2/28/2019
19.1.0 6,998 1/30/2019
18.12.0 4,244 12/27/2018
18.11.0 3,618 11/30/2018
18.10.0 10,727 10/30/2018
18.9.0 3,162 9/30/2018
18.8.0 3,462 8/29/2018
18.7.0 9,237 7/27/2018
18.6.0 10,084 7/1/2018
18.5.0 5,561 5/30/2018
18.4.0 2,401 5/3/2018
18.3.0 3,094 4/1/2018
18.2.1 3,508 3/7/2018
18.2.0 1,887 2/28/2018
18.1.0 2,884 1/30/2018
17.12.1 4,808 12/26/2017
17.12.0 808 12/16/2017
17.11.0 1,279 11/30/2017
17.10.0 3,969 10/31/2017
17.9.1 3,456 10/12/2017
17.9.0 1,405 10/2/2017
17.8.0 9,297 8/30/2017
17.7.0 6,093 7/31/2017
17.6.0 2,218 7/1/2017
17.5.0 1,996 5/31/2017
17.4.0 2,564 4/28/2017
17.3.0 2,965 4/2/2017
17.2.0 7,231 3/1/2017
17.1.0 3,132 1/31/2017
16.12.1 3,127 1/16/2017
16.12.0 1,531 12/27/2016
16.11.0 2,344 11/30/2016
16.10.0 2,317 11/4/2016
16.9.0 2,937 10/12/2016
16.8.0 2,876 9/27/2016
16.7.0 1,502 8/22/2016
16.6.0 16,133 7/15/2016
16.5.0 3,113 6/16/2016
16.4.0 3,345 5/16/2016
16.3.0 7,790 4/11/2016
16.2.0 4,260 3/17/2016
16.1.0 5,856 2/4/2016
15.11.0 9,150 1/11/2016
15.10.0 9,180 12/10/2015
15.9.0 5,464 11/6/2015
15.8.1 913 10/16/2015
15.8.0 1,208 10/5/2015
15.7.0 3,138 9/3/2015
15.6.0 7,097 7/22/2015
15.5.0 2,684 6/16/2015
15.4.0 1,797 5/14/2015
15.3.1 1,001 4/23/2015
15.3.0 665 4/14/2015
15.2.0 8,645 3/6/2015
15.1.0 1,221 2/3/2015
14.10.0 4,567 11/28/2014
14.9.0 1,479 11/11/2014
14.8.1 1,379 10/24/2014
14.8.0 620 10/16/2014
14.7.0 1,823 9/7/2014
14.6.0 1,129 8/6/2014
14.5.0 3,067 7/16/2014
14.4.0 1,741 6/2/2014
14.3.0 1,956 5/6/2014
14.2.0 1,136 3/24/2014
14.1.2 1,545 2/17/2014
14.1.1 619 2/10/2014
14.1.0.2 537 2/6/2014
13.12.0 1,475 12/30/2013
8.4.2 4,481 6/5/2014
8.4.1 1,130 5/6/2014
8.4.0 757 3/3/2014
8.3.0.1 645 2/3/2014
8.2.0 592 12/27/2013
8.1.0 4,872 12/16/2013
8.0.0 1,622 10/25/2013
7.9.0 986 10/8/2013
7.8.0 709 9/3/2013
7.7.0 2,959 8/4/2013
7.6.0 777 7/5/2013
7.5.0 1,015 5/27/2013
7.4.0 7,295 4/24/2013
7.3.0 802 4/10/2013
7.2.0 1,028 3/8/2013
7.1.0 3,107 1/28/2013
7.0.0 829 12/31/2012
6.9.0 778 12/10/2012
6.8.0 845 10/30/2012
6.7.0 1,100 10/4/2012
6.6.0 708 9/13/2012
6.5.0 819 7/27/2012
6.4.0 738 6/27/2012
6.3.0 664 5/29/2012
6.2.0 707 5/7/2012
6.1.0 731 3/28/2012
6.0.0 703 3/2/2012
5.9.0.1 722 2/16/2012
5.9.0 1,122 2/16/2012
Show less