From 8d5bfa19a7cc765ca9d21a3003521ffa47b01001 Mon Sep 17 00:00:00 2001 From: CoderWanFeng <875143930@qq.com> Date: Sun, 5 Mar 2023 19:57:14 +0800 Subject: [PATCH] publish 0.2.23 : ppt2img --- office/__init__.py | 2 +- office/api/ppt.py | 5 +++++ office/lib/decorator_utils/instruction_url.py | 4 +++- requirements.txt | 1 - setup.cfg | 2 +- 5 files changed, 10 insertions(+), 4 deletions(-) diff --git a/office/__init__.py b/office/__init__.py index c0dc01a..3943367 100644 --- a/office/__init__.py +++ b/office/__init__.py @@ -17,5 +17,5 @@ print('1、全部功能【视频 & 文字】教程:https://www.python-office.com/') print('2、请+【项目交流群】:http://t.cn/A65MiFvH') print('3、本开源项目的【代码仓库】:https://github.com/CoderWanFeng/python-office') -print('4、【常见问题】:https://www.python-office.com/ref/qaq.html') +print('4、新人10大【常见问题】:https://www.python-office.com/ref/qaq.html') print(SPLIT_LINE) diff --git a/office/api/ppt.py b/office/api/ppt.py index 696a48e..6ce224d 100644 --- a/office/api/ppt.py +++ b/office/api/ppt.py @@ -21,3 +21,8 @@ @instruction def ppt2pdf(path: str): poppt.ppt2pdf(path) + + +@instruction +def ppt2img(input_path, output_path=r'./', img_type='jpg'): + poppt.ppt2img(input_path, output_path, img_type) diff --git a/office/lib/decorator_utils/instruction_url.py b/office/lib/decorator_utils/instruction_url.py index 3a2dd23..b71ec57 100644 --- a/office/lib/decorator_utils/instruction_url.py +++ b/office/lib/decorator_utils/instruction_url.py @@ -42,7 +42,9 @@ "pdf2docx": "https://mp.weixin.qq.com/s/eTwtTXLAudRQmyhE4LY_Dg", "pdf2imgs": "https://mp.weixin.qq.com/s/tvHZIBGcrMBLTLB4u23Mow", "txt2pdf": "", } -ppt_dict = {"ppt2pdf": "https://mp.weixin.qq.com/s/T31F-U5AdDd3D-61b_K5Qg", } +ppt_dict = {"ppt2pdf": "https://mp.weixin.qq.com/s/T31F-U5AdDd3D-61b_K5Qg", + "ppt2img": "https://mp.weixin.qq.com/s/KtxI8H0RVJEnYtB18T6XiQ", + } tools_dict = {"create_article": "https://mp.weixin.qq.com/s/guBtZHyUyybGNOqzZke1kQ", "lottery8ticket": "https://mp.weixin.qq.com/s/Q6JgW06hMUSik0DqGD0rOA", "net_speed_test": "https://www.bilibili.com/video/BV1fD4y1x7ZE", diff --git a/requirements.txt b/requirements.txt index 04e3dfe..64c1bc4 100644 --- a/requirements.txt +++ b/requirements.txt @@ -177,7 +177,6 @@ moviepy pywin32 rich >= 9.13.0 you-get -PyOfficeRobot uiautomation schedule diff --git a/setup.cfg b/setup.cfg index 76d3c53..ca28198 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = python-office -version = 0.2.18 +version = 0.2.23 description = python for office long_description = file: README.md long_description_content_type = text/markdown