Aspose.Slides.NET 17.3.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 17.3.0
dotnet add package Aspose.Slides.NET --version 17.3.0
<PackageReference Include="Aspose.Slides.NET" Version="17.3.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Aspose.Slides.NET --version 17.3.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

SLIDESNET-38440 - Get audio/video rendered as audio/video in Html
   SLIDESNET-38361 - Support of detection Microsoft PowerPoint 95 presentations
   SLIDESNET-38354 - Loading fonts from assembly
   SLIDESNET-38192 - Support to get chart external data source workbook path
   SLIDESNET-38149 - Get Actual Max value of vertical axis on a chart
   SLIDESNET-37586 - Getting actual absolute X,Y values for chart data points
   SLIDESNET-37475 - Set print setting option dynamically
   SLIDESNET-34526 - Support for adding line in chart area
   SLIDESNET-38426 - Create new chart base on style of existing chart
   SLIDESNET-37469 - Extracting Excel table data in presentation as Text in XPS
   SLIDESNET-38436 - When PPT file is saved as PDF, the percentage sign goes on the wrong side
   SLIDESNET-38425 - When PPTX is saved as PDF by using PdfCompliance.PdfA1b, the System.ArgumentException occurs
   SLIDESNET-38401 - Chart Plot Area is improperly rendered in generated PDF
   SLIDESNET-38386 - PPTX to PDF graph not rendering correctly
   SLIDESNET-38385 - PPTX to PDF table not rendering
   SLIDESNET-38381 - Black background when rendering pps or ppt to image
   SLIDESNET-38363 - File corrupted after saving
   SLIDESNET-38324 - Exception while converting PPTX to PDF: Value too large or too small
   SLIDESNET-38314 - Round brackets are improperly rendered in generated PDF
   SLIDESNET-38288 - After load and save of PPT file, the footer disappears.
   SLIDESNET-38286 - The background color of a shape was changed from white to green in a specific PPT
   SLIDESNET-38283 - Fonts changed after saving ppt
   SLIDESNET-38282 - Text position changed after saving ppt
   SLIDESNET-38232 - Text being overlapped with Image
   SLIDESNET-38224 - Rendering issues when converting from PPTX to PDF
   SLIDESNET-38223 - Squares are changed after loading and saving a ppt
   SLIDESNET-38221 - Ppt changed after saving
   SLIDESNET-38178 - When saving as pdf the hyperlink (URLs) becomes mojibake
   SLIDESNET-38134 - Ppt not properly converted to html
   SLIDESNET-38088 - Ppt changes after saving
   SLIDESNET-38024 - Missing characters in converted svg and thumbnail when uses ReplaceFont()
   SLIDESNET-37557 - An animation star is added to all of the slides after loading and saving a ppt
   SLIDESNET-37463 - Problem while translating the pdf generated by Aspose.Slides
   SLIDESNET-37102 - Animations in MasterSlide lost on ppt load and save
   SLIDESNET-37101 - Transitions appear on ppt load and save
   SLIDESNET-34336 - Wrong value axis Maximum value on value axis scale

 Public API Changes

 ActualMaxValue, ActualMinValue, ActualMajorUnit, ActualMinorUnit, ActualMajorUnitScale, ActualMinorUnitScale have been added to Axis, IAxis

double ActualMaxValue - Gets actual maximum value on the axis.
double ActualMinValue - Gets actual minimum value on the axis.
double ActualMajorUnit - Gets actual major unit of the axis.
double ActualMinorUnit - Gets actual minor unit of the axis.
TimeUnitType ActualMajorUnitScale - Gets actual major unit scale of the axis.
TimeUnitType ActualMinorUnitScale - Gets actual minor unit scale of the axis.

Call method IChart.ValidateChartLayout() previously to get actual values for these properties.

using (Presentation pres = new Presentation())
{
   Chart chart = (Chart)pres.Slides[0].Shapes.AddChart(ChartType.Area, 100, 100, 500, 350);
   chart.ValidateChartLayout();

   double maxValue = chart.Axes.VerticalAxis.ActualMaxValue;
   double minValue = chart.Axes.VerticalAxis.ActualMinValue;

   double majorUnit = chart.Axes.HorizontalAxis.ActualMajorUnit;
   double minorUnit = chart.Axes.HorizontalAxis.ActualMinorUnit;
}

 ActualX, ActualY, ActualWidth, ActualHeight have been added to IChartPlotArea, ChartPlotArea

float ActualX - Gets actual X location (left) of the chart element relative to the left top corner of the chart. Call method IChart.ValidateChartLayout() before to get actual values.
float ActualY - Gets actual top of the chart element relative to the left top corner of the chart. Call method IChart.ValidateChartLayout() before to get actual values.
float ActualWidth - Gets actual width of the chart element. Call method IChart.ValidateChartLayout() before to get actual values.
float ActualHeight - Gets actual height of the chart element. Call method IChart.ValidateChartLayout() before to get actual values.

Call method IChart.ValidateChartLayout() previously to get actual values for these properties.

using (Presentation pres = new Presentation())
{
   Chart chart = (Chart)pres.Slides[0].Shapes.AddChart(ChartType.ClusteredColumn, 100, 100, 500, 350);
   chart.ValidateChartLayout();

   double x = chart.PlotArea.ActualX;
   double y = chart.PlotArea.ActualY;
   double w = chart.PlotArea.ActualWidth;
   double h = chart.PlotArea.ActualHeight;
}

 DataSourceType and ExternalWorkbookPath properties has been added to IChartData interface and ChartData class

Two new properties have been added to IChartData interface and ChartData class:
DataSourceType of type ChartDataSourceType, which represents data source of the chart.
ExternalWorkbookPath of type string, which represents external workbook path if data source is external, null otherwise.
ChartDataSourceType is a new enum which represents the two values: InternalWorkbook and ExternalWorkbook.

Example:

using (Presentation pres = new Presentation("pres.pptx"))
{
   ISlide slide = pres.Slides[1];
   IChart chart = (IChart)slide.Shapes[0];
   ChartDataSourceType sourceType = chart.ChartData.DataSourceType;
   if (sourceType == ChartDataSourceType.ExternalWorkbook)
   {
       string path = chart.ChartData.ExternalWorkbookPath;
   }
}

 IActualLayout interface has been added

Properties of IActualLayout provide information about actual position of parent chart element. It is necessary to call method IChart.ValidateChartLayout() previously to fill properties with actual values.

using (Presentation pres = new Presentation())
{
   Chart chart = (Chart)pres.Slides[0].Shapes.AddChart(ChartType.ClusteredColumn, 100, 100, 500, 350);
   chart.ValidateChartLayout();

   double x = chart.PlotArea.ActualX;
   double y = chart.PlotArea.ActualY;
   double w = chart.PlotArea.ActualWidth;
   double h = chart.PlotArea.ActualHeight;
}

 Method ValidateChartLayout() has been added to IChart interface and Chart class

Calculates actual values of chart elements. The actual values include position of elements that implement IActualLayout interface (IActualLayout.ActualX, IActualLayout.ActualY, IActualLayout.ActualWidth, IActualLayout.ActualHeight) and actual axes values (IAxis.ActualMaxValue, IAxis.ActualMinValue, IAxis.ActualMajorUnit, IAxis.ActualMinorUnit, IAxis.ActualMajorUnitScale, IAxis.ActualMinorUnitScale).

using (Presentation pres = new Presentation())
{
   Chart chart = (Chart)pres.Slides[0].Shapes.AddChart(ChartType.ClusteredColumn, 100, 100, 500, 350);
   chart.ValidateChartLayout();
   double x = chart.PlotArea.ActualX;
   double y = chart.PlotArea.ActualY;
   double w = chart.PlotArea.ActualWidth;
   double h = chart.PlotArea.ActualHeight;
}

 New method LoadExternalFont has been added to FontsLoader class

The new method LoadExternalFont has been added to FontsLoader class:

public static void LoadExternalFont(byte[] data)

This method allows to add font from the binary data.

// loading presentation uses SomeFont which is not installed on the system
using(Presentation pres = new Presentation("pres.pptx")
{
 // load SomeFont from file into the byte array
 byte[] fontData = File.ReadAllBytes(@"fonts\SomeFont.ttf"));

 // load font represented as byte array
 FontsLoader.LoadExternalFont(fontData);

 // font SomeFont will be available during the rendering or other operations
}

 Ppt95 value has been added to Aspose.Slides.LoadFormat enumeration

The new Ppt95 value has been added to Aspose.Slides.LoadFormat enumeration. This value represents Microsoft PowerPoint 95 presentation format.
Code snippet to check whether the presentation format is old Microsoft PowerPoint 95:

bool isOldFormat = PresentationFactory.Instance.GetPresentationInfo(path).LoadFormat == LoadFormat.Ppt95;

Dependencies

This package has no dependencies.

Version History

Version Downloads Last updated
19.6.0 794 6/25/2019
19.5.0 2,083 5/31/2019
19.4.0 3,450 4/26/2019
19.3.0 2,151 4/3/2019
19.2.0 6,132 2/28/2019
19.1.0 6,823 1/30/2019
18.12.0 4,162 12/27/2018
18.11.0 3,561 11/30/2018
18.10.0 10,550 10/30/2018
18.9.0 3,143 9/30/2018
18.8.0 3,443 8/29/2018
18.7.0 9,209 7/27/2018
18.6.0 9,880 7/1/2018
18.5.0 5,509 5/30/2018
18.4.0 2,318 5/3/2018
18.3.0 3,077 4/1/2018
18.2.1 3,501 3/7/2018
18.2.0 1,881 2/28/2018
18.1.0 2,878 1/30/2018
17.12.1 4,729 12/26/2017
17.12.0 807 12/16/2017
17.11.0 1,278 11/30/2017
17.10.0 3,947 10/31/2017
17.9.1 3,454 10/12/2017
17.9.0 1,403 10/2/2017
17.8.0 9,206 8/30/2017
17.7.0 6,090 7/31/2017
17.6.0 2,209 7/1/2017
17.5.0 1,994 5/31/2017
17.4.0 2,557 4/28/2017
17.3.0 2,959 4/2/2017
17.2.0 7,196 3/1/2017
17.1.0 3,129 1/31/2017
16.12.1 3,086 1/16/2017
16.12.0 1,531 12/27/2016
16.11.0 2,338 11/30/2016
16.10.0 2,315 11/4/2016
16.9.0 2,930 10/12/2016
16.8.0 2,870 9/27/2016
16.7.0 1,499 8/22/2016
16.6.0 16,029 7/15/2016
16.5.0 3,107 6/16/2016
16.4.0 3,327 5/16/2016
16.3.0 7,763 4/11/2016
16.2.0 4,258 3/17/2016
16.1.0 5,800 2/4/2016
15.11.0 9,079 1/11/2016
15.10.0 9,177 12/10/2015
15.9.0 5,448 11/6/2015
15.8.1 913 10/16/2015
15.8.0 1,206 10/5/2015
15.7.0 3,109 9/3/2015
15.6.0 7,008 7/22/2015
15.5.0 2,683 6/16/2015
15.4.0 1,796 5/14/2015
15.3.1 999 4/23/2015
15.3.0 664 4/14/2015
15.2.0 8,532 3/6/2015
15.1.0 1,216 2/3/2015
14.10.0 4,554 11/28/2014
14.9.0 1,478 11/11/2014
14.8.1 1,377 10/24/2014
14.8.0 620 10/16/2014
14.7.0 1,818 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,384 6/5/2014
8.4.1 1,126 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,858 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,925 8/4/2013
7.6.0 777 7/5/2013
7.5.0 1,015 5/27/2013
7.4.0 7,294 4/24/2013
7.3.0 802 4/10/2013
7.2.0 1,027 3/8/2013
7.1.0 3,105 1/28/2013
7.0.0 828 12/31/2012
6.9.0 777 12/10/2012
6.8.0 844 10/30/2012
6.7.0 1,094 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 721 2/16/2012
5.9.0 1,122 2/16/2012
Show less