We're glad to announce the release of Spire.Presentation 9.4.5. This version adds several new features, such as support for adding placeholders, support for inserting math equations in paragraphs, etc. Besides, it also fixes an issue that occurred when converting PPTX documents to SVG documents. Check below for more details.
Here is a list of changes made in this release
Category | ID | Description |
New feature | SPIREPPT-2469 | Supports adding placeholders.
public enum InsertPlaceholderType { Content = 0, VerticalContent = 1, Text = 2, VerticalText = 3, Picture = 4, Chart = 5, Table = 6, SmartArt = 7, Media = 8, OnlineImage = 9 } presentation.Masters[0].Layouts[0].InsertPlaceholder(InsertPlaceholderType.Text, new RectangleF(20, 30, 400, 400)); |
New feature | SPIREPPT-2476 | Supports setting map projection for map charts.
Presentation ppt = new Presentation(); ppt.LoadFromFile(inputFile); IChart chart = ppt.Slides[0].Shapes[9] as IChart; ProjectionType type = chart.Series[0].ProjectionType; chart.Series[0].ProjectionType = ProjectionType.Robinson; ppt.SaveToFile(outputFile, FileFormat.Pptx2013); ppt.Dispose(); |
New feature | SPIREPPT-2479 | Supports inserting math equations in paragraphs.
Presentation ppt = new Presentation(); string latexMathCode = "x^{2}+\\sqrt{x^{2}+1=2}"; IAutoShape shape = ppt.Slides[0].Shapes.AppendShape(ShapeType.Rectangle, new RectangleF(30, 100, 400, 200)); shape.TextFrame.Paragraphs.Clear(); TextParagraph p = new TextParagraph(); p.ParagraphProperties.DefaultTextRangeProperties.Fill.FillType = FillFormatType.Solid; p.ParagraphProperties.DefaultTextRangeProperties.Fill.SolidColor.Color = Color.Black; shape.TextFrame.Paragraphs.Append(p); TextRange portionEx = new TextRange("Hello World"); p.TextRanges.Append(portionEx); p.AppendFromLatexMathCode(latexMathCode); TextRange portionEx2 = new TextRange("My name is Tom."); p.TextRanges.Append(portionEx2); ppt.SaveToFile(outputFile, FileFormat.Auto); ppt.Dispose(); |
New feature | SPIREPPT-2484 | Supports embedding SVG files as images in slides. (This feature is supported in PPTX 2016 and later versions, not for PPT format files.)
presentation.Slides[0].Shapes.AddFromSVG(inputFile, new RectangleF(40, 40, 200, 200)); |
Bug | SPIREPPT-2482 | Fixes the issue that the direction of gradient color backgrounds was rotated when converting PPTX documents to SVG documents. |
Click the link to download Spire.Presentation 9.4.5:
More information of Spire.Presentation new release or hotfix: