Aspose.Slides for .NET 15.1.0 Release Notes

Major Changes

Key Summary
SLIDESNET-35615 FontEntity class alternate implementation in the latest version of Aspose.Slides

Minor Changes

Key Summary
SLIDESNET-35204 Support to remove macros in presentation
SLIDESNET-35092 Feature to Convert SmartArt Shapes to Image
SLIDESNET-35067 Feature to Join PortionEx with Same Formatting
SLIDESNET-34980 Feature to Convert Shape to Image is required in Presentation files
SLIDESNET-34787 Extract audio used in SlideShowTransitions
SLIDESNET-29249 Using Aspose.Slides as COM Interop DLL
SLIDESNET-19406 Serialization for ShapesEx
SLIDESNET-12643 Macros detection / removal in presentations
SLIDESNET-3710 Serialization of Group Shapes
SLIDESNET-28206 Implement PresentationVisitor
SLIDESNET-12540 Paragraph.BulletOffset has no effect

Other Improvements and Changes

Bug Fixes

Key Summary
SLIDESNET-36060 NullReference exception on opening presentaiton
SLIDESNET-36038 Hebrew text alignment is disturbed in generated PDF
SLIDESNET-36037 External Hyperlink gets changed in Aspose.Slides saved presentation
SLIDESNET-36031 Argument exception thrown on accessing presentation
SLIDESNET-36023 Bullets are wrongly rendered in generated thumbnail
SLIDESNET-36014 Images missing in generated HTML
SLIDESNET-36012 PowerPoint stops working with an error when a PPTX resaved from a PPT is opened
SLIDESNET-36007 Exception: Preset number idx doesn’t exist
SLIDESNET-36004 Exception: Preset number idx doesn’t exist
SLIDESNET-35989 Harlow-Solid-Italic font failed to render in generated thumbnails
SLIDESNET-35987 The chart and Table placeholder return AutoShape as shape type for selected shape
SLIDESNET-35978 System.Exception is thrown on cloning the presentation file
SLIDESNET-35975 Content in the output presentation file is overflowing when importing HTML to PPTX
SLIDESNET-35974 Bullets getting changed in the output presentation file when importing HTML to PPTX
SLIDESNET-35971 FileNotFound exception when loading a presentation from a valid path
SLIDESNET-35957 Object reference not set to an instance of an object Exception is thrown on opening the PPTX file
SLIDESNET-35956 X-axis values are improperly rendered in generated thumbnail
SLIDESNET-35955 PptxUnsupportedFormatException: Encrypted presentations are not supported when loading the PPT
SLIDESNET-35951 Unable to edit chart data after creating a new chart in presentation file
SLIDESNET-35949 The contents are getting overlapped in the generated PDF file
SLIDESNET-35944 ArgumentOutOfRangeException is thrown on opening the PPT file
SLIDESNET-35941 Graph is not rendering properly from PPTX to Image conversion
SLIDESNET-35940 Graph is not rendering properly from PPTX to PDF
SLIDESNET-35939 LineWidth must return NaN on accessing the presentation shape
SLIDESNET-35932 Aspose.Slides chart failed to edit in PowerPoint
SLIDESNET-35929 Password protected PPTX presentaiton failed to open
SLIDESNET-35927 Legend keys appear on thumbnail
SLIDESNET-35926 Wrong font color of legend
SLIDESNET-35925 Wrong background color on the chart
SLIDESNET-35923 Presentation repair message appears for Aspose.Slides cloned presentation
SLIDESNET-35919 Shape shadow property gets changed during cloning presentation slides
SLIDESNET-35914 PPTX file fails to open when polynomial trendline are set to order 2
SLIDESNET-35904 Wrong merged cell border
SLIDESNET-35886 ArgumentOutOfRangeException exception on cloning presentation slides
SLIDESNET-35884 NullPointerException thrown while opening the PPT file
SLIDESNET-35873 Adding chart Series/Categories makes chart uneditable in PowerPoint
SLIDESNET-35863 Bullets are not properly rendered in generated PDF
SLIDESNET-35839 Wrong lables text and position in the generated PDF file
SLIDESNET-35814 Chart Title not coming fine after conversion to PDF
SLIDESNET-35761 Table Rows are connecting with other table in generated PDF file.
SLIDESNET-35758 Unknown file format exception on opening the PPT file
SLIDESNET-35717 PPTX to PDF: Chart labels are blurry
SLIDESNET-35690 Improper vertical axis rendering in generated PDF
SLIDESNET-35689 Chart plot area fill color is missing when converting PPTX to PDF
SLIDESNET-35664 Exception on generating XPS using Aspose.Slides
SLIDESNET-35661 Unexpected font parsing exception when opening PPTX file
SLIDESNET-35649 Text has wrong position after cloning 14.10.0, 15.1.0
SLIDESNET-35566 Exception on saving cloned presentation as PPT
SLIDESNET-35562 Wrong fill color of chart’s plot area
SLIDESNET-35543 Unexpected font parsing exception on loading presentations
SLIDESNET-35521 Chart failed to get edited in PowerPoint when updated using Aspose.Slides
SLIDESNET-35480 Ole frame failed to open after data is modified using Aspose.Slides and Aspose.Cells
SLIDESNET-35446 Red Box doesn’t fit around the text correctly after conversion to PDF
SLIDESNET-35287 The generated PDF give error message on generating PDF
SLIDESNET-34992 Text inside table overlaps the footer text in generated thumbnail
SLIDESNET-34936 Slide background fill effect “From title” is processed incorrectly
SLIDESNET-34768 Object resized after presentation saving
SLIDESNET-34135 Hyperlink color is improperly rendered in generated thumbnail
SLIDESNET-34109 SmartArt shapes getting corrupted on saving the presentation
SLIDESNET-33745 Graphics distortion in thumbnail
SLIDESNET-29128 Conversion from PPTX to PPT, PPS and PDF
SLIDESNET-24860 Create TIF file with first x page
SLIDESNET-24385 Aspose.Slides Inter Operation with COM
SLIDESNET-23799 PDF generation takes immense resources and too heavy when opened
SLIDESNET-18109 Serializatiion in PPTX
SLIDESNET-11407 SmartArt rendering issue

Public API Changes

Fonts substitutions functinality has been added

Possibility to replace font globally across the presentation and temporary for rendering has been added.

New property “FontsManager” of Presentation class has been introduced. FontsManager class has following members:

IFontSubstRuleCollection FontSubstRuleList Property This collection of IFontSubstRule instancesusing to substitute fonts during rendering.IFontSubstRule hasSourceFont andDestFont properties implementing IFontData interface andReplaceFontCondition property allowing to choose condition of replacement (“WhenInaccessible” or “Always”).

IFontData GetFonts() Method Using to retrieve all fonts uisng in the current presentation.

ReplaceFont Methods Using to persistently replace font in the presentation.

The following example shows how to replace font in the presentation:

Presentation pres = new Presentation("PresContainsArialFont.pptx");

IFontData sourceFont = new FontData("Arial");
IFontData destFont = new FontData("Times New Roman");

pres.FontsManager.ReplaceFont(sourceFont, destFont);
pres.Save("PresContainsTimesNoewRomanFont.pptx", SaveFormat.Pptx);

Another example, demonstrates font substitution for rendering when inaccessible:

Presentation pres = new Presentation("PresContainsSomeRareFontFont.pptx");

IFontData sourceFont = new FontData("SomeRareFont");
IFontData destFont = new FontData("Arial");

IFontSubstRule fontSubstRule = new FontSubstRule(
	sourceFont, destFont, FontSubstCondition.WhenInaccessible);
IFontSubstRuleCollection fontSubstRuleCollection = new FontSubstRuleCollection();
fontSubstRuleCollection.Add(fontSubstRule);

pres.FontsManager.FontSubstRuleList = fontSubstRuleCollection;

// Arial font will be used instead of SomeRareFont when inaccessible
pres.Slides[0].GetThumbnail();