产品和版本:Aspose.Slides for Python via. NET (Version: 25.7.0)
编程语言和版本: Python 3.8
部署环境: Ubuntu 20.04.6 LTS
代码片段:
def convert_to_jpg(...):
...
with slides_module.Presentation(ppt_path) as presentation:
for i…...shapes[0] # 假设第一条线是目标形状 line = shape.line_format line.dash_style = DashStyle...DashStyle.custom line.custom_dash_pattern = [4, 2] # 4 像素实线 + 2...