【python 批量将PPT中各种东西保存为图片 没有水印】

# 安装

pip install Aspose.Slides==24.12.0

# 代码(没有水印,亲测可用!!)

使用导出md为中介,巧妙!但是不能导出整张无水印的幻灯片!

python 复制代码
import aspose.slides as slides

ppt_path = r"xxx.pptx"
out_dir = "save"


with slides.Presentation(ppt_path) as pres:
    # Create Markdown creation options
    md_options = slides.export.MarkdownSaveOptions()
    # Set parameter for render all items (items that are grouped will be rendered together).
    md_options.export_type = slides.export.MarkdownExportType.VISUAL
    # Set folder name for saving images
    md_options.images_save_folder_name = "md-images"
    # Set path for folder images
    md_options.base_path = out_dir

    # Save presentation in Markdown format
    pres.save(out_dir + "/pres.md", slides.export.SaveFormat.MD, md_options)

图片都保存在 save/md-images文件夹中

相关推荐
weixin_307779131 分钟前
批量OCR的GitHub项目
python·github·ocr
孤狼warrior1 小时前
灰色预测模型
人工智能·python·算法·数学建模
神仙别闹1 小时前
基于Python实现LSTM对股票走势的预测
开发语言·python·lstm
机器学习之心2 小时前
小波增强型KAN网络 + SHAP可解释性分析(Pytorch实现)
人工智能·pytorch·python·kan网络
JavaEdge在掘金2 小时前
MySQL 8.0 的隐藏索引:索引管理的利器,还是性能陷阱?
python
站大爷IP2 小时前
Python办公自动化实战:手把手教你打造智能邮件发送工具
python
chao_7892 小时前
回溯题解——子集【LeetCode】二进制枚举法
开发语言·数据结构·python·算法·leetcode
zdw2 小时前
fit parse解析佳明.fit 运动数据,模仿zwift数据展示
python
剑桥折刀s3 小时前
Python打卡:Day46
python
巴里巴气3 小时前
Python爬虫图片验证码和滑块验证码识别总结
爬虫·python