PPT
空slide
-
创建空PPT, 支持inches和cm
from automate_office.automate_ppt.MyPPTCreator import PPTCreator my_ppt = PPTCreator(size_params={"unit_type": "inches", "width": 10, "height": 5.625})
-
存储PPT,默认存储在Downloads目录下
my_ppt.save_pptx(filename=None, save_path=None)
-
创建slide
my_slide = my_ppt.create_slide(slide_idx=6)
-
创建文本框
my_ppt.add_textbox( self, cur_slide: slide.Slide, # left top width height, 相对于长宽的比例,0-1之间 rel_coordinate=(0, 0, 1, 1), paragraph_infos=None )
- paragraph_infos: 下面是一个例子
paragraph_infos = [ { "对齐": "居中", "文字": [ ["段落1第1部分文字", "微软雅黑", 12, False, False, (0, 255, 0)], ["段落1第2部分文字", "微软雅黑", 12, False, False, (0, 0, 255)], ... ], "段落间距": 8 }, { "对齐": "左对齐", "文字": [ ["段落2第1部分文字", "微软雅黑", 12, False, False, (0, 255, 0)], ["段落2第2部分文字", "微软雅黑", 12, False, False, (0, 0, 255)], ... ], "段落间距": 8 }, ]
-
创建矩形
my_ppt.add_rectangle_shape
-
创建图片
my_ppt.add_picture
-
创建柱状图
my_ppt.add_bar_chart
-
创建折线图
my_ppt.add_line_chart
-
创建饼图
my_ppt.add_pie_chart
-
创建表格
my_ppt.add_table
-
修改已有PPT的文字
from automate_office.automate_ppt.modify_ppt import set_textframe set_textframe(text_frame, paragraph_infos=None, vertical_anchor = MSO_ANCHOR.MIDDLE)
Metadata
Release files for automate-office 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| automate_office-0.3.1.tar.gz | 16.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| automate_office-0.3.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 35.3 kB
Release files / automate_office-0.3.1.tar.gz
| Download URL | automate_office-0.3.1.tar.gz |
|---|---|
| Size | 16.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6cfc8e6ae767aaf19eded7b754f356663a8278b371cb8612c14dbe7ef96c157d
|
|
BLAKE2b-256 checksum How to use checksums |
4f42760c7b6200e73bc9ef2131aa5c5f25b903dcae440151b20b9e93c28c41bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.10
|
Release files / automate_office-0.3.1-py3-none-any.whl
| Download URL | automate_office-0.3.1-py3-none-any.whl |
|---|---|
| Size | 19.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f73fd8e1fce9a331b965c6b8805bf0776678c2d9b5daeec3265cb8c34e31d3ac
|
|
BLAKE2b-256 checksum How to use checksums |
80c623394be4a9811309e01dd9eb2e6ba7deffa854406bcb9a5ed2b9095285b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.10
|
Security for automate-office 0.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.