Aspose.Slides.NET 14.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 14.9.0
dotnet add package Aspose.Slides.NET --version 14.9.0
<PackageReference Include="Aspose.Slides.NET" Version="14.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 14.9.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

Aspose.Slides for .NET 14.9.0 Release Notes
We are pleased to announce the release of Aspose.Slides for .NET 14.9.0. This release includes new functionality and bug fixes.

Using Aspose.Slides for .NET you can work with PPT, PPTX, OpenDocument, and other formats in your applications. You can also view, generate, modify, convert, render and print presentations all without using
Microsoft PowerPoint.

Visit the documentation to learn how to <a href="http://www.aspose.com/docs/display/slidesnet/Getting+Started">; get started with Aspose.Slides for .NET.

Note this download contains a fully working version of the product,
however without a license set it will run in evaluation mode. To test
Aspose.Slides without these evaluation limitations you can <a href="http://www.aspose.com/corporate/purchase/temporary-license.aspx">; request a free 30-day temporary license.

The following is a list of changes in this version of Aspose.Slides.
Minor Changes

SLIDESNET-35803 - Convert a specific PPTX slide to PDF file
SLIDESNET-35708 - Setting Fill format for SmartArt node
SLIDESNET-35559 - Get warnings for Fonts substitution in Aspose.Slides
SLIDESNET-33196 - Support for setting the background color of individual nodes in SmartArt shape
SLIDESNET-35805 - Missing feature to replace image in presentation file in the new unified version
SLIDESNET-35588 - Implement animation timeline serialization to PPT

Other Improvements and Changes
Bug Fixes

SLIDESNET-35821 - The animations are not working properly in the generated PPTX file
SLIDESNET-35811 - Object reference not set to an instance of an object Exception is thrown on PPT to PDF conversion
SLIDESNET-35807 - NullReference exception on opening presentation
SLIDESNET-35782 - Text missing after PPTX presentation resaving
SLIDESNET-35774 - Border issue when opening and saving pptx Presentation
SLIDESNET-35720 - PPTX to PDF: Vertical axis scale is wrong
SLIDESNET-35715 - Unknown file format exception is thrown on opening PPT presentation
SLIDESNET-35710 - NullPointerException on exporting PPTX to PDF
SLIDESNET-35701 - Animation effects are lost after saving PPT
SLIDESNET-35696 - Pie Chart Series Labels are outside the chart in generated PNG
SLIDESNET-35692 - Embeddded videos lost in cloned presentaiton
SLIDESNET-35664 - Exception on generating XPS using Aspose.Slides
SLIDESNET-35624 - Resaving animations resets start/end markers
SLIDESNET-35569 - Image missing in generated PDF when exported using mono environment in Linux
SLIDESNET-35529 - Bullets are missing in exported PDF
SLIDESNET-35527 - Text getting overlapped and over sized in generated PDF
SLIDESNET-35526 - Extra bullets rendered in generated PDF
SLIDESNET-35455 - PPT password protected presentation reading throws an exception
SLIDESNET-35320 - PptxUnsupportedFormat Exception on loading password protect PPT presentation
SLIDESNET-35237 - Converting Slide to Thumbnail does not show the chart in converted file
SLIDESNET-35232 - Hidden Slide property issue for PPT file
SLIDESNET-34373 - The line links are missing for rendered smart art in generated PDF
SLIDESNET-35647 - Argument exception on generating PDF

Public API Changes
Inheritance from ICollection and generic IEnumerable interfaces have been added to ISmartArtNodeCollection

The class Aspose.Slides.SmartArt.SmartArtNodeCollection (and related interface  Aspose.Slides.SmartArt.ISmartArtNodeCollection) inherit generic interface IEnumerable<ISmartArtNode> and interface ICollection.
SmartArtLayoutType.Custom enum value has been added

This type of SmartArt layout represents diagram with custom template. Custom diagrams only can be loaded from presentation file and can't be created via method ShapeCollection.AddSmartArt(x, y, width, height, SmartArtLayoutType.Custom)
SmartArtShape class and ISmartArtShape interface have been added

The Aspose.Slides.SmartArt.SmartArtShape class (and its interface Aspose.Slides.SmartArt.ISmartArtShape) add access to individual shapes inside SmartArt diagram. SmartArtShape can be used to change FillFormat, LineFormat, adding Hyperlinks etc.

Note: SmartArtShape does not supported IShape properties RawFrame, Frame, Rotation, X, Y, Width, Height and thrown System.NotSupportedException when attempting to access them.

Example of usage:

using (Presentation pres = new Presentation())
{
 ISmartArt smart = pres.Slides[0].Shapes.AddSmartArt(10, 10, 400, 300, SmartArtLayoutType.BasicBlockList);
 ISmartArtNode node = smart.AllNodes[0];
 foreach (SmartArtShape shape in node.Shapes)
 {
   shape.FillFormat.FillType = FillType.Solid;
   shape.FillFormat.SolidFillColor.Color = Color.Red;
 }
 pres.Save("out.pptx", Export.SaveFormat.Pptx);
}

SmartArtShapeCollection class, ISmartArtShapeCollection interface and ISmartArtNode.Shapes property have been added

The Aspose.Slides.SmartArt.SmartArtShapeCollection class (and its interface Aspose.Slides.SmartArt.ISmartArtShapeCollection) add access to individual shapes inside SmartArt diagram. Collection contains shapes associated with SmartArtNode. Property SmartArtNode.Shapes returns collections of all shapes associated with the node.

Note: depending of SmartArtLayoutType one SmartArtShape can be shared between several nodes.

using (Presentation pres = new Presentation())
{
 ISmartArt smart = pres.Slides[0].Shapes.AddSmartArt(10, 10, 400, 300, SmartArtLayoutType.BasicBlockList);
 ISmartArtNode node = smart.AllNodes[0];
 foreach (SmartArtShape shape in node.Shapes)
 {
   shape.FillFormat.FillType = FillType.Solid;
   shape.FillFormat.SolidFillColor.Color = Color.Red;
 }
 pres.Save("out.pptx", Export.SaveFormat.Pptx);
}

Methods for saving presentation slides with page numbers keeping have been added

The following methods have been added:

void IPresentation.Save(string fname, int[] slides, SaveFormat format);

void IPresentation.Save(string fname, int[] slides, SaveFormat format, ISaveOption options);

void IPresentation.Save(Stream stream, int[] slides, SaveFormat format);

void IPresentation.Save(Stream stream, int[] slides, SaveFormat format, ISaveOption options);

These methods allow to save specified presentation slides to PDF, XPS, TIFF, HTML formats. The 'slides' array allows to specify page numbers, starting from 1.
Save(string fname, int[] slides, SaveFormat format);

Presentation presentation = new Presentation(presentationFileName);
int[] slides = new int[] { 2, 3, 5 }; //Array of slides positions
presentation.Save(outFileName, slides, SaveFormat.Pdf);

Methods for image replacing have been added to PPImage, IPPImage

New methods added:

IPPImage.ReplaceImage(byte[] newImageData)
IPPImage.ReplaceImage(Image newImage)
IPPImage.ReplaceImage(IPPImage newImage)

Presentation presentation = new Presentation(presentation.pptx);

//the first way
byte[] data = File.ReadAllBytes(image0.jpeg);
IPPImage oldImage = presentation.Images[0];
oldImage.ReplaceImage(data);

//the second way
Image newImage = Image.FromFile(image1.png);
oldImage = presentation.Images[1];
oldImage.ReplaceImage(newImage);

//the third way
oldImage = presentation.Images[2];
oldImage.ReplaceImage(presentation.Images[3]);

presentation.Save(presentation_out.pptx, SaveFormat.Pptx);

Dependencies

This package has no dependencies.

Version History

Version Downloads Last updated
19.6.0 910 6/25/2019
19.5.0 2,164 5/31/2019
19.4.0 3,493 4/26/2019
19.3.0 2,192 4/3/2019
19.2.0 6,193 2/28/2019
19.1.0 6,937 1/30/2019
18.12.0 4,190 12/27/2018
18.11.0 3,597 11/30/2018
18.10.0 10,651 10/30/2018
18.9.0 3,151 9/30/2018
18.8.0 3,453 8/29/2018
18.7.0 9,225 7/27/2018
18.6.0 9,987 7/1/2018
18.5.0 5,539 5/30/2018
18.4.0 2,350 5/3/2018
18.3.0 3,082 4/1/2018
18.2.1 3,503 3/7/2018
18.2.0 1,881 2/28/2018
18.1.0 2,879 1/30/2018
17.12.1 4,773 12/26/2017
17.12.0 807 12/16/2017
17.11.0 1,279 11/30/2017
17.10.0 3,959 10/31/2017
17.9.1 3,456 10/12/2017
17.9.0 1,405 10/2/2017
17.8.0 9,232 8/30/2017
17.7.0 6,093 7/31/2017
17.6.0 2,216 7/1/2017
17.5.0 1,994 5/31/2017
17.4.0 2,563 4/28/2017
17.3.0 2,963 4/2/2017
17.2.0 7,209 3/1/2017
17.1.0 3,130 1/31/2017
16.12.1 3,106 1/16/2017
16.12.0 1,531 12/27/2016
16.11.0 2,340 11/30/2016
16.10.0 2,316 11/4/2016
16.9.0 2,933 10/12/2016
16.8.0 2,870 9/27/2016
16.7.0 1,501 8/22/2016
16.6.0 16,082 7/15/2016
16.5.0 3,112 6/16/2016
16.4.0 3,327 5/16/2016
16.3.0 7,767 4/11/2016
16.2.0 4,259 3/17/2016
16.1.0 5,843 2/4/2016
15.11.0 9,127 1/11/2016
15.10.0 9,179 12/10/2015
15.9.0 5,454 11/6/2015
15.8.1 913 10/16/2015
15.8.0 1,207 10/5/2015
15.7.0 3,122 9/3/2015
15.6.0 7,053 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,579 3/6/2015
15.1.0 1,219 2/3/2015
14.10.0 4,556 11/28/2014
14.9.0 1,479 11/11/2014
14.8.1 1,377 10/24/2014
14.8.0 620 10/16/2014
14.7.0 1,821 9/7/2014
14.6.0 1,129 8/6/2014
14.5.0 3,059 7/16/2014
14.4.0 1,740 6/2/2014
14.3.0 1,956 5/6/2014
14.2.0 1,135 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,430 6/5/2014
8.4.1 1,129 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,867 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,934 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,027 3/8/2013
7.1.0 3,106 1/28/2013
7.0.0 829 12/31/2012
6.9.0 777 12/10/2012
6.8.0 844 10/30/2012
6.7.0 1,097 10/4/2012
6.6.0 707 9/13/2012
6.5.0 818 7/27/2012
6.4.0 737 6/27/2012
6.3.0 663 5/29/2012
6.2.0 706 5/7/2012
6.1.0 730 3/28/2012
6.0.0 702 3/2/2012
5.9.0.1 722 2/16/2012
5.9.0 1,122 2/16/2012
Show less