Aspose.Slides.NET 17.3.0

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.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
19.9.0 2,774 9/12/2019
19.8.0 1,387 8/30/2019
19.7.0 9,557 7/26/2019
19.6.0 3,117 6/25/2019
19.5.0 4,921 5/31/2019
19.4.0 5,734 4/26/2019
19.3.0 3,039 4/3/2019
19.2.0 7,448 2/28/2019
19.1.0 9,228 1/30/2019
18.12.0 5,155 12/27/2018
18.11.0 4,147 11/30/2018
18.10.0 13,026 10/30/2018
18.9.0 3,300 9/30/2018
18.8.0 3,625 8/29/2018
18.7.0 9,896 7/27/2018
18.6.0 13,245 7/1/2018
18.5.0 6,372 5/30/2018
18.4.0 3,529 5/3/2018
18.3.0 3,252 4/1/2018
18.2.1 5,819 3/7/2018
18.2.0 2,099 2/28/2018
18.1.0 3,258 1/30/2018
17.12.1 5,719 12/26/2017
17.12.0 857 12/16/2017
17.11.0 1,341 11/30/2017
17.10.0 4,540 10/31/2017
17.9.1 3,557 10/12/2017
17.9.0 1,544 10/2/2017
17.8.0 9,812 8/30/2017
17.7.0 6,235 7/31/2017
17.6.0 2,498 7/1/2017
17.5.0 2,046 5/31/2017
17.4.0 2,729 4/28/2017
17.3.0 3,164 4/2/2017
17.2.0 7,933 3/1/2017
17.1.0 3,188 1/31/2017
16.12.1 3,954 1/16/2017
16.12.0 1,567 12/27/2016
16.11.0 2,425 11/30/2016
16.10.0 2,390 11/4/2016
16.9.0 3,209 10/12/2016
16.8.0 2,959 9/27/2016
16.7.0 1,541 8/22/2016
16.6.0 18,356 7/15/2016
16.5.0 3,256 6/16/2016
16.4.0 3,715 5/16/2016
16.3.0 8,270 4/11/2016
16.2.0 4,305 3/17/2016
16.1.0 6,295 2/4/2016
15.11.0 10,398 1/11/2016
15.10.0 9,255 12/10/2015
15.9.0 5,873 11/6/2015
15.8.1 944 10/16/2015
15.8.0 1,242 10/5/2015
15.7.0 3,228 9/3/2015
15.6.0 8,200 7/22/2015
15.5.0 2,767 6/16/2015
15.4.0 1,832 5/14/2015
15.3.1 1,030 4/23/2015
15.3.0 693 4/14/2015
15.2.0 10,914 3/6/2015
15.1.0 1,314 2/3/2015
14.10.0 4,673 11/28/2014
14.9.0 1,512 11/11/2014
14.8.1 1,409 10/24/2014
14.8.0 653 10/16/2014
14.7.0 1,867 9/7/2014
14.6.0 1,159 8/6/2014
14.5.0 3,158 7/16/2014
14.4.0 1,777 6/2/2014
14.3.0 2,008 5/6/2014
14.2.0 1,176 3/24/2014
14.1.2 1,589 2/17/2014
14.1.1 654 2/10/2014
14.1.0.2 571 2/6/2014
13.12.0 1,512 12/30/2013
8.4.2 5,688 6/5/2014
8.4.1 1,176 5/6/2014
8.4.0 792 3/3/2014
8.3.0.1 688 2/3/2014
8.2.0 635 12/27/2013
8.1.0 5,106 12/16/2013
8.0.0 1,661 10/25/2013
7.9.0 1,027 10/8/2013
7.8.0 747 9/3/2013
7.7.0 3,636 8/4/2013
7.6.0 819 7/5/2013
7.5.0 1,055 5/27/2013
7.4.0 7,333 4/24/2013
7.3.0 842 4/10/2013
7.2.0 1,070 3/8/2013
7.1.0 3,145 1/28/2013
7.0.0 867 12/31/2012
6.9.0 809 12/10/2012
6.8.0 878 10/30/2012
6.7.0 1,228 10/4/2012
6.6.0 746 9/13/2012
6.5.0 858 7/27/2012
6.4.0 783 6/27/2012
6.3.0 708 5/29/2012
6.2.0 751 5/7/2012
6.1.0 768 3/28/2012
6.0.0 746 3/2/2012
5.9.0.1 767 2/16/2012
5.9.0 1,189 2/16/2012
Show less