如何使用Python组合Powerpoints文件

时间:2019-06-25 05:12:41

标签: python powerpoint powerpoint-2013

反正有使用Python组合PowerPoint文件吗?

python中有一个名为python-pptx的库,该库用于使用powerpoint,但不支持合并powerpoint文件。

例如,在C#中(C尖锐) 我们可以使用库调用OpenXmlPowerTools在一行中合并两个pptx文件

所以,我想知道Python中是否有类似的东西

using OpenXmlPowerTools;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;



    public class pptcombine
    {

        public static void combineppt(List<string> listofppt, string savename)
        {
            List<SlideSource> sources = new List<SlideSource>();

            for (int i = 0; i < listofppt.Count(); i++)
            {
                sources.Add(new SlideSource(new PmlDocument(listofppt[i]), true));

            }
            PresentationBuilder.BuildPresentation(sources, savename);

        }
    }

0 个答案:

没有答案
相关问题