Spire.Presentation

Spire.Presentation 4.4.3 supports determining whether an image was cropped and setting whether to keep notes when converting PPT to SVG

We're pleased to announce the release of Spire.Presentation hotfix version 4.4.3. This version adds two new properties – SlidePicture.IsCropped & Presentation.IsNoteRetained – to determine whether an image was cropped and to set whether to keep notes when converting PPT to SVG respectively. Meanwhile, it also enhances the conversion effect from PPT to PDF. View the details below.

New Features:

  • Adds SlidePicture.IsCropped property to determine whether an image was cropped.
  • foreach (IShape shape in ppt.Slides[0].Shapes)
    {
        if (shape is SlidePicture)
        {
            SlidePicture slidepicture = (SlidePicture)shape;
            bool reault = slidepicture.IsCropped;
        }           
    }
    
  • Adds the presentation.IsNoteRetained property to set whether to keep notes when converting PPT to SVG.
  • Presentation ppt = new Presentation();
    ppt.LoadFromFile(inputPPT);
    ppt.IsNoteRetained = true;
    Queue bytes = ppt.SaveToSVG();
    int length = bytes.Count;
    for (int i = 0; i < length; i++)
    {
        FileStream filestream = new FileStream(string.Format(@"output_{0}.svg", i), FileMode.Create);
        byte[] outputBytes = bytes.Dequeue();
        filestream.Write(outputBytes, 0, outputBytes.Length);      
    }
    ppt.Dispose();
    

Bug Fixes:

  • Fixes the issue that the chart data label moved up when converting PPT to PDF.

Click the below link to download Spire.Presentation 4.4.3:
More information of Spire.Presentation new release or hotfix: