Spire. Presentation for. NET

Spire. Presentation for. NET

A PowerPoint Compatible Library without Microsoft PowerPoint

This is the list of changelogs of Spire.Presentation New release and hotfix. You can get the detail information of each version's new features and bug solutions.

Free Trail to evaluate Spire.Presentation here:

Hot Fix Version: 6.2.2

Category ID Description
New Feature SPIREPPT-1413 Supports the function of replacing video files.
Presentation ppt= new Presentation();
ppt.LoadFromFile(inputFile);
VideoCollection videos = ppt.Videos;
foreach (ISlide sld in ppt.Slides)
{
    foreach (Spire.Presentation.Shape sp in sld.Shapes)
    {
        if (sp is IVideo)
        {
IVideo video = sp as IVideo;
byte[] bts = File.ReadAllBytes("C:/test.mp4");
VideoData videoData = videos.Append(bts);
video.EmbeddedVideoData = videoData;
        }
    }
}
ppt.SaveToFile(outputFile, FileFormat.Pptx2013);
Bug SPIREPPT-1414 Fixes the issue that the output pptx file could not be opended after deleting the shape where the video was located
Bug SPIREPPT-1415 Fixes the issue that the text of data label in chart was garbled when converting PPT to Image in multithreaded mode.
Bug SPIREPPT-1418 Fixes the issue that the application threw NullReferenceException when replacing the images in SmartArt.
Bug SPIREPPT-1430 Fixes the issue that the application threw "an object reference is not set to an instance of the object" when loading PPT.
Bug SPIREPPT-1451 Fixes the issue that the bulleted list displayed incorrectly after copying the paragraphs with bulleted list to new slide.
Bug SPIREPPT-1456 Fixes the issue that the application threw {"rgb(255 is not a valid value for Int32. (Parameter 'htmlColor')"} when adding html text.
Bug SPIREPPT-1457
SPIREPPT-1458
Fixes the issue that the output pptx file got very large after merging two pptx files.

Hot Fix Version: 6.1

Category ID Description
New Feature SPIREPPT-1385 Supports embedding ZIP objects into PPTX files. (Note that 03PPT does not support this feature.)
String zipPath= "C:/test.zip";
Presentation ppt = new Presentation();
byte[] data = File.ReadAllBytes(zipPath);
Rectangle rec = new Rectangle(80, 60, 100, 100);
//The first parameter needs to be passed the complete file name 
IOleObject ole = ppt.Slides[0].Shapes.AppendOleObject("test.zip", data, rec);
ole.ProgId = "Package";
Image image = Image.FromFile(@"E:\demoProducts\Image\logo.png");
IImageData oleImage = ppt.Images.Append(image);
ole.SubstituteImagePictureFillFormat.Picture.EmbedImage = oleImage;
ppt.SaveToFile(@"result.pptx", Spire.Presentation.FileFormat.Pptx2013);
New Feature - Supports loading and printing PPT/PPTX containing mathematical formulas and converting to other document formats.
Bug SPIREPPT-1395 Fixes the issue that the size of shape inside it was changed when copying group shape.
Bug SPIREPPT-1397 Fixes the issue that the shape's position was changed after the value of a shape inside group shape was modified.
Bug SPIREPPT-1398 Fixes the issue that the content was stretched when printing multiple slides onto one page.
Bug SPIREPPT-1398 Fixes the issue that the position of a shape was changed when the height of the shape was modified after cloning it into another slide.

Hot Fix Version: 5.11.4

Category ID Description
Bug SPIREPPT-727
SPIREPPT-1375
Fixes the issue that it threw an unknown error when clicking OLE object of the result PPTX file that was embedded PDF, Image OLE.
Bug SPIREPPT-1376
SPIREPPT-1379
Fixes the issue that the application threw System.NullReferenceException when converting PPT to PDF.

Hot Fix Version: 5.11.2

Category ID Description
New Feature - Supports digital signature function
//Add digital signature
X509Certificate2 x509 = new X509Certificate2(inputPfx, "e-iceblue");
ppt.AddDigitalSignature(x509, "111", DateTime.Now);
//Remove digital signature
if (ppt.IsDigitallySigned == true) 
{ 
ppt.RemoveAllDigitalSignatures(); 
New Feature SPIREPPT-1342 Supports setting colors and custom names for trend line of chart.
Presentation ppt = new Presentation();
ppt.LoadFromFile(inputFile);
IChart chart = ppt.Slides[0].Shapes[0] as IChart;
ITrendlines trendline = chart.Series[0].TrendLines[0] as ITrendlines;
trendline.displayEquation = false;
trendline.displayRSquaredValue = false;
trendline.Name = "trendlineName";
trendline.Line.FillType = FillFormatType.Solid;
trendline.Line.SolidFillColor.Color = Color.Red;
ppt.SaveToFile(outputFile, FileFormat.Pptx2010);
ppt.Dispose();
New Feature SPIREPPT-1348 Supports setting Morph transition type.
ppt.Slides[0].SlideShowTransition.Type = TransitionType.Morph;
Bug SPIREPPT-1346 Fixes the issue that the application threw DocumentUnknownFormatException when loading PPT file includes external DTD.
Bug SPIREPPT-1360 Fixes the issue that the content is inconsistent when converting PPT to PDF.
Bug SPIREPPT-1366 Fixes the issue that the application threw IndexOutOfRangeException when loading PPT

Hot Fix Version: 5.9.5

Category ID Description
New Feature SPIREPPT-1293 Supports ungrouping the grouped shapes.
GroupShape groupShape = presentation.Slides[0].Shapes[0] as GroupShape;
presentation.Slides[0].Ungroup(groupShape);
New Feature SPIREPPT-1298 Adds "GetPlaceholderShapes" method to get the shapes of layout slide by placeholder.
Placeholder placeholder = presentation.Slides[1].Shapes[0].Placeholder;
IShape[] shapes = presentation.Slides[1].GetPlaceholderShapes(placeholder);
for (int i = 0; i < shapes.Length; i++)
{
        if (shapes[i] is IAutoShape)
        {
            IAutoShape autoShape = shapes[i] as IAutoShape;
            if (autoShape.TextFrame != null)
            {
                Console.WriteLine(autoShape.TextFrame.Text);
            }
        }
} 
New Feature SPIREPPT-1299 Supports the GroupShapes method to return GroupShape object.
ArrayList groupShapeList = new ArrayList();
groupShapeList.Add(shape1);
groupShapeList.Add(shape2);
groupShapeList.Add(shape3);
GroupShape groupshape = ppt.Slides[0].GroupShapes(groupShapeList);
Bug SPIREPPT-1294 Fixes the issue that the application threw "DocumentEditException" when cloning a slide to another file.
Bug SPIREPPT-1301 Fixes the issue that a shape was missing after grouping the shapes.
Bug SPIREPPT-1305 Fixes the issue that the application threw "NullReferenceException" when converting PPTX to HTML.
Bug SPIREPPT-1306 Fixes the issue that the application threw "IndexOutOfRangeException" when loading the PPTX file.
Bug SPIREPPT-1307 Fixes the issue that it caused incorrect chart content after converting PPTX to PDF.
Bug SPIREPPT-1308 Fixes the issue that the application threw the error “Encrypted presentations are not supported” when loading a protected PPT file.

Hot Fix Version: 5.8.5

Category ID Description
New Feature SPIREPPT-1253 Adds "Insert" and "Append" new methods to add section.
Section sect01 = ppt.SectionList.Insert(0, "section1");
Section sect02 = ppt.SectionList.Append("section2");
New Feature SPIREPPT-1253 Supports adding slides to the section, moving and removing slides in the section.
ISlide slide01 = ppt.Slides.Append();
ISlide slide02 = ppt.Slides.Append();

Section section01 = ppt.SectionList.Add("section1", slide01);
Section section02 = ppt.SectionList.Insert(1, "section2");
Section section03 = ppt.SectionList.Append("section3");

//Add slides
ISlide slide03 = ppt.SectionList.InsertSlide(section02, 0, slide01);
ISlide slide04 = section02.Insert(1, slide02);
section02.AddRange(new ISlide[] { slide03, slide04 });

//Move slides 
ppt.SectionList.MoveSlide(section03, 0, slide03); 
section03.Move(1, slide04);

//Remove slides
ppt.SectionList.RemoveSlide(section03, 0);
section01.RemoveAt(0);
section02.RemoveRange(0, 3);
section03.Remove(slide04);
New Feature SPIREPPT-1254 Supports getting the index of the section.
int index1 = ppt.SectionList.IndexOf(section01);
int index2 = section02.Index;
New Feature SPIREPPT-1288 Supports removing sections from PPT files.
ppt.SectionList.RemoveAt(1);
ppt.SectionList.RemoveAll();
Bug SPIREPPT-1251 Fixes the issue that the application threw "NullReferenceException" when loading the file.
Bug SPIREPPT-1256
SPIREPPT-1271
Fixes the issue that add sections to PPT file failed.
Bug SPIREPPT-1267 Fixes the issue that the content was missing after converting PPT to PDF.
Bug SPIREPPT-1272 Fixes the issue that an error prompted when opening the result file after setting the properties for the .potm file.
Bug SPIREPPT-1274 Fixes the issue that the application threw "NullReferenceException" when setting the style of outline lines for newly added SmartArt nodes.
Bug SPIREPPT-1276 Fixes the issue that an error prompted when opening the result file after modifying the chart data of the PPT file.

Hot Fix Version: 5.8.1

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.

Hot Fix Version: 5.7.2

Category ID Description
Bug SPIREPPT-1107 Fixes the issue that the line position was incorrect when converting PPT to PDF.
Bug SPIREPPT-1214 Fixes the issue that the application threw System.NullReferenceException when loading a PPTX document.
Bug SPIREPPT-1219 Fixes the issue that setting the duration for animation didn't take effect.

Hot Fix Version: 5.6.1

Category ID Description
Bug SPIREPPT-1131 Fixes the issue that the content was incorrect when converting PPT to PDF.
Bug SPIREPPT-1145 Fixes the issue that the application threw an error "Microsoft PowerPoint 2007 file is corrpt" when loading a PPTX document.
Bug SPIREPPT-1162 Fixes the issue that the chart data of the output document could not be accessed after changing the chart data.
Bug SPIREPPT-1166 Fixes the issue that it failed to set the underline of text range.
Bug SPIREPPT-1167 Fixes the issue that the created scatter chart with straight lines had needless markers.
Bug SPIREPPT-1183 Fixes the issue that the application threw System.NullReferenceException when saving to a PPTX document.

Hot Fix Version: 5.4.2

Category ID Description
New feature SPIREPPT-1105 Supports Right-to-left columns.
IAutoShape shape = ppt1.Slides[0].Shapes[0] as IAutoShape;
shape.TextFrame.RightToLeftColumns = true;
New feature SPIREPPT-1106 Supports drawing line segments by the position of two points.
ppt.Slides[0].Shapes.AppendShape(ShapeType.Line, new PointF(10, 10), new PointF(20, 30));
Bug SPIREPPT-1108 Fixes the issue that it failed to open output document when converting PPT to PDF.