Spire.Presentation for Python 10.6.4 已发布。该版本新增支持Linux arm64 平台以及保存形状shape到SVG的新功能。此外,一些在转换PPT到图片和加载文件时出现的问题也已成功被修复。详情请查看下文。
新功能:
- 升级依赖的SkiaSharp版本至3.116.1。
- 新增支持linux arm64平台.
- 支持保存形状shape 到SVG。
presentation = Presentation()
presentation.LoadFromFile(inputFile)
m=0
for i in range(presentation.Slides.Count):
slide = presentation.Slides[i]
for j in range (slide.Shapes.Count):
shape = slide.Shapes[j]
#stream = shape.SaveAsSvg()
stream = shape.SaveAsSvgInSlide()
stream.Save(outputFile+"Bug_2739_1_"+str(m)+".svg")
stream.Flush()
stream.Close()
m=m+1
问题修复:
- 修复了PPT转图片,内容格式不正确的问题。
- 修复了加载PPT文件报错的问题。
- 修复了设置shape.TextFrame.AutofitType = TextAutofitType.Normal 效果不正确的问题。
获取Spire.Presentation for Python 10.6.4,请点击: