如何使用python把ppt转换成pdf
作者:海底苍鹰 时间:2022-09-20 14:27:14
ppt要想完美的转pdf,图片,还是需要在windows下面来操作。
1,安装python3.5.1
下载地址
Windows x86-64 executable installer,windows下64位安装程序
安装界面,选中加入环境变量。这样就不用手动去加环境变量了。
2,安装pip
下载地址
pip-10.0.1.tar.gz,解压后,在解压的根目录下执行以下命令。
python setup.py install3,安装python包
pip install PyWin32 Pillow reportlab
4,下载ppt2pdf程序
git clone
5,ppt转图片,pdf
C:\PPT2PDF-master>python PPT2PDF.py test.pptx test.pdf
test
水印完成
准备生成C:\PPT2PDF-master\test_tank测试.pdf
C:\PPT2PDF-master\test_tank测试\幻灯片1.PNG
C:\PPT2PDF-master\test_tank测试\幻灯片2.PNG
C:\PPT2PDF-master\test_tank测试\幻灯片3.PNG
C:\PPT2PDF-master\test_tank测试\幻灯片4.PNG
C:\PPT2PDF-master\test_tank测试\幻灯片5.PNG
C:\PPT2PDF-master\test_tank测试\幻灯片6.PNG
C:\PPT2PDF-master\test_tank测试\幻灯片7.PNG
C:\PPT2PDF-master\test_tank测试\幻灯片8.PNG
完成PDF合成
在这里要注意的是,下载下来的文件编码是utf8,不要改变文件的编码格式,不然会报错。
来源:http://blog.51yip.com/other/1934.html
标签:python,ppt转换,pdf
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
需要使用php模板的朋友必看的很多个顶级PHP模板引擎比较分析
2023-11-19 02:10:43
如何在SQL Server中由原子建立分子查询
2009-01-20 16:01:00
sql添加数据后返回受影响行数据
2011-11-03 17:18:18
30个运用纸类元素网页设计的创意实例欣赏
2009-04-20 12:49:00
![](https://img.aspxhome.com/file/UploadPic/20094/20/paper-web-design-01-500x272-56s.jpg)
Python实战使用XPath采集数据示例解析
2022-02-25 09:00:24
![](https://img.aspxhome.com/file/2023/4/72024_0s.png)
Python下调用Linux的Shell命令的方法
2023-08-10 01:43:17
django redis的使用方法详解
2023-08-03 10:54:30
php环境下利用session防止页面重复刷新的具体实现
2023-11-14 08:51:45
IE下中英文字体不能对齐原因及解决
2008-08-11 12:47:00
![](https://img.aspxhome.com/file/UploadPic/20088/11/2008811125353679s.jpg)
python rsync服务器之间文件夹同步脚本
2023-02-23 05:05:56
GDAL 矢量属性数据修改方式(python)
2021-01-30 20:53:28
![](https://img.aspxhome.com/file/2023/7/78537_0s.jpg)
ASP编程代码:隐藏图片的真实地址
2008-10-19 17:14:00
Mysql全局ID生成方法
2023-07-02 13:59:53
给页面 unload 加上效果
2009-03-12 12:32:00
Python Matplotlib中使用plt.savefig存储图片的方法举例
2021-11-19 14:08:55
![](https://img.aspxhome.com/file/2023/1/79431_0s.png)
python 读取、写入txt文件的示例
2023-09-29 22:04:18
![](https://img.aspxhome.com/file/2023/7/63237_0s.png)
Python PyQt5学习之自定义信号
2022-01-06 12:03:52
![](https://img.aspxhome.com/file/2023/7/72887_0s.png)
Django使用unittest模块进行单元测试过程解析
2021-04-03 13:09:08
Python利用Turtle绘制哆啦A梦和小猪佩奇
2022-05-08 08:38:24
![](https://img.aspxhome.com/file/2023/2/77822_0s.png)
Python中的单例模式与反射机制详解
2023-11-24 00:55:54