We are pleased to announce the release of Spire.Presentation for Python 9.11.1. The latest version supports the functionality to get the slides from "section". Moreover, some known bugs are fixed successfully in this update, such as the issue that errors occurred when using SlideCountPerPageForPrint and ContainingHiddenSlides methods. More details are listed below.
Here is a list of changes made in this release
Category | ID | Description |
New feature | SPIREPPT-2575 | Supports the functionality to get the slides from "section".
ppt = Presentation() ppt.LoadFromFile(inputFile) section=ppt.SectionList[0] slides=section.GetSlides() sb = [] i=0 for slide in slides: sb.append("SlideID:"+str(slides[i].SlideID)) i=i+1 File.AppendAllText(outputFile, sb) ppt.Dispose |
New feature | SPIREPPT-2605 | Supports the functionality to get the Left and Top values of SmartArt.
# Create a Presentation oject presentation = Presentation() # Load a PowerPoint document presentation.LoadFromFile(inputFile) sb = [] # Get custom document properties for shape in presentation.Slides[0].Shapes: if isinstance(shape, ISmartArt): sa = shape if isinstance(shape, ISmartArt) else None sb.append("left: " + str(sa.Left)) sb.append("top: " + str(sa.Top)) File.AppendAllText(outputFile, sb) presentation.Dispose() |
New feature | SPIREPPT-2621 | Supports the DisplayFormat property.
# Create a Presentation oject presentation = Presentation() presentation.LoadFromFile(inputFile) shape = presentation.Slides[0].Shapes[0] textrange = shape.TextFrame.Paragraphs[0].TextRanges[0] displayformat = textrange.DisplayFormat sb = [] sb.append("text :" + str(textrange.Text)) sb.append("is bold :" + str(displayformat.IsBold)) sb.append("is italic :" + str(displayformat.IsItalic)) sb.append("latin_font FontName = :" + str(displayformat.LatinFont.FontName)) File.AppendAllText(outputFile, sb) presentation.Dispose() |
Bug | SPIREPPT-2503 | Fixes the issue that errors occurred when using SlideCountPerPageForPrint and ContainingHiddenSlides methods. |
Bug | SPIREPPT-2564 SPIREPPT-2566 |
Fixes the issue that there were incorrect layouts when converting PPT to PDF. |
Bug | SPIREPPT-2618 | Optimized the time consumption issue of converting PPT to images. |
Click the link below to get Spire.Presentation for Python 9.11.1: