SkillAgentSearch skills...

Openxml

openxml is a Python library to create and manipulate .docx and .pptx files

Install / Use

/learn @chbrown/Openxml
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

openxml

Forked from timetric/python-openxml.

openxml is a Python library to create and manipulate .docx and .pptx files.

The code draws heavily on Mike McCana's python-docx library.

openxml was written to support the Timetric data visualization platform.

Word Usage

To create a .docx file, suitable for use with Microsoft Word, do the following:

from openxml.docx import Document
d = Document.create()
d.add_heading('Document heading')
d.add_para('This is some text in the document')
d.add_picture('image1.png')
d.save('document.docx')

See the source code in docx.py for further details.

Powerpoint Usage

To create a .pptx file, suitable for use with Microsoft Powerpoint, do the following:

from openxml.pptx import Document
d = Document.create()
s = d.add_slide()
s.add_heading('Document heading')
s.add_para('This is some text in the document')
s.add_picture('image1.png')
d.save('document.pptx')

See the source code in pptx.py for further details.

License

Portions Copyright Mike McCana (MIT Licensed) Copyright Timetric Ltd., 2012. (No license specified) Copyright Christopher Brown, 2013 (MIT Licensed)

View on GitHub
GitHub Stars6
CategoryDevelopment
Updated3y ago
Forks0

Languages

Python

Security Score

70/100

Audited on Nov 27, 2022

No findings