Spire.Presentation 5.8.1

Spire.Presentation 5.8.1 supports adding sections and setting the style of outline lines of SmartArt node

We're pleased to announce the release of Spire.Presentation 5.8.1. This version supports adding sections, setting the style of outline lines of SmartArt node and the lines between the SmartArt nodes and fixes the issue that occurred when converting PPT to PDF. See the content below for more details.

Here is a list of changes made in this release

Category ID Description
New Feature SPIREPPT-1241 Supports adding sections.
Presentation presentation = new Presentation();
presentation.LoadFromFile(pptfile);
ISlide slide = presentation.Slides[0];
//Add section 
presentation.SectionList.Add("section1", slide);
//Get section
Section section;
String name;
  for (int i = 0; i < presentation.SectionList.Count; i++)
    {
      section  = presentation.SectionList[i];
      name = section.Name;
         foreach (long id in section.SlideIdList)
          {
           }
     }
New Feature SPIREPPT-1236 Supports setting the style of outline lines of the SmartArt node.
ISmartArt smartArt = presentation.Slides[0].Shapes[0] as ISmartArt;
int count =smartArt.Nodes.Count;
ISmartArtNode node;
  for (int i = 0; i < count; i++)
    {
    node = smartArt.Nodes[i];
    node.Line.FillType = FillFormatType.Solid;
    node.Line.SolidFillColor.Color = Color.Gray;
    node.Line.Width = 2;
    }
New Feature SPIREPPT-1237 Supports setting the style of the lines between the SmartArt nodes.
ISmartArt smartArt = presentation.Slides[0].Shapes[0] as ISmartArt;
int count =smartArt.Nodes.Count;
ISmartArtNode node;
  for (int i = 0; i < count; i++)
    {
    node = smartArt.Nodes[i];
    node.LinkLine.FillType = FillFormatType.Solid;
    node.LinkLine.SolidFillColor.Color = Color.Gray;
    node.LinkLine.Width = 2;
    node.LinkLine.DashStyle = LineDashStyleType.SystemDash;
    }
Bug SPIREPPT-1230 Fixes the issue that some content was missing when converting PPT to PDF.
Click the link below to download Spire.Presentation 5.8.1:
More information of Spire.Presentation new release or hotfix: