Skip to main content

快速读取docx文档内容

Project description

readword

快速读取docx文档数据

安装(install)

pip install readword

使用(use):

1. 实例化RW类并填入docx文档路径

2. 创建工作台

3. 退出RW工作台,销毁缓存数据

使用示例:

from ReadWord.readword import RW


# 实例化RW并传入docx文档路径
rw = RW(r'docxpath\file.docx')
# 创建工作台
rw.create_workspace()
# 保存所有png图片
rw.save_all_picture(r'C:\Desktop\test')
# 按照文档结构,获取文档内容和段落类型
rw.get_style_position()
# 退出RW工作台
rw.exit()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ReadWord-0.0.5.tar.gz (3.7 kB view hashes)

Uploaded Source

Built Distribution

ReadWord-0.0.5-py3-none-any.whl (3.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page