Release 0.8
python-docx Documentation
Release 0.8.11 Steve Canny
May 15, 2021
1 What it can do 2 User Guide 3 API Documentation 4 Contributor Guide Index
Contents
3 5 37 71 189
i
ii
python-docx Documentation, Release 0.8.11
Release v0.8.11 (Installation) python-docx is a Python library for creating and updating Microsoft Word (.docx) files.
Contents
1
python-docx Documentation, Release 0.8.11
2
Contents
Here's an example of what python-docx can do:
1 CHAPTER
What it can do
3
python-docx Documentation, Release 0.8.11
from docx import Document from docx.shared import Inches
document = Document()
document.add_heading('Document Title', 0)
p = document.add_paragraph('A plain paragraph having some ') p.add_run('bold').bold = True p.add_run(' and some ') p.add_run('italic.').italic = True
document.add_heading('Heading, level 1', level=1) document.add_paragraph('Intense quote', style='Intense Quote')
document.add_paragraph( 'first item in unordered list',
style='List Bullet' ) document.add_paragraph(
'first item in ordered list', style= 'List Number' )
document.add_picture('monty-truth.png',
width=Inches(1.25))
4
Chapter 1. What it can do
records = (
(3, '101', 'Spam'),
(7, '422', 'Eggs'),
(4, '631', 'Spam, spam, eggs, and
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- extracting data from image based pdfs
- beautiful soup rxjs ggplot2 python data persistence
- 2 quantifying fuel saving opportunities from specific
- python regex cheatsheet activestate
- amazon textract developer guide
- pdfminer read the docs
- 1 install the beautiful soup package
- an integrated approach of deep learning and symbolic
- a python book beginning python advanced python and
- python mysql tutorialspoint