python-docx python-docx 0.8.11 documentation
Time 2021-11-25 12:08:55Web Name: python-docx python-docx 0.8.11 documentation
WebSite: http://python-docx.readthedocs.org
ID:250777
Keywords:
docx,python,documentation,Description:
keywords: description: Navigation index next | python-docx 0.8.11 documentation python-docx¶Release v0.8.11 (Installation)
python-docx is a Python library for creating and updating Microsoft Word(.docx) files.
What it can do¶Here’s an example of what python-docx
can do:
from docx import Documentfrom docx.shared import Inchesdocument = Document()document.add_heading(Document Title, 0)p = document.add_paragraph(A plain paragraph having some )p.add_run(bold).bold = Truep.add_run( and some )p.add_run(italic.).italic = Truedocument.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))records = ( (3, 101, Spam), (7, 422, Eggs), (4, 631, Spam, spam, eggs, and spam))table = document.add_table(rows=1, cols=3)hdr_cells = table.rows[0].cellshdr_cells[0].text = Qtyhdr_cells[1].text = Idhdr_cells[2].text = Descfor qty, id, desc in records: row_cells = table.add_row().cells row_cells[0].text = str(qty) row_cells[1].text = id row_cells[2].text = descdocument.add_page_break()document.save(demo.docx)User Guide¶InstallingQuickstartWorking with DocumentsWorking with TextWorking with SectionsWorking with Headers and FootersAPI basicsUnderstanding StylesWorking with StylesUnderstanding pictures and other shapesAPI Documentation¶Document objects
Document
constructorDocument
objectsCoreProperties
objectsDocument Settings
objectsStyle-related objectsStyles
objectsBaseStyle
objects_CharacterStyle
objects_ParagraphStyle
objects_TableStyle
objects_NumberingStyle
objectsLatentStyles
objects_LatentStyle
objectsText-related objectsParagraph
objectsParagraphFormat
objectsRun
objectsFont
objectsTabStop
objectsTabStops
objectsTable objectsTable
objects_Cell
objects_Row
objects_Column
objects_Rows
objects_Columns
objectsSection objectsSections
objectsSection
objects_Header
and _Footer
objectsShape-related objectsInlineShapes
objectsInlineShape
objectsDrawingML objectsColorFormat
objectsShared classesLength objectsRGBColor
objectsEnumerationsMSO_COLOR_TYPE
MSO_THEME_COLOR_INDEX
WD_PARAGRAPH_ALIGNMENT
WD_BUILTIN_STYLE
WD_CELL_VERTICAL_ALIGNMENT
WD_COLOR_INDEX
WD_LINE_SPACING
WD_ORIENTATION
WD_TABLE_ALIGNMENT
WD_ROW_HEIGHT_RULE
WD_SECTION_START
WD_STYLE_TYPE
WD_TAB_ALIGNMENT
WD_TAB_LEADER
WD_TABLE_DIRECTION
WD_UNDERLINE
Contributor Guide¶Analysis Table of Contents python-docxWhat it can doUser GuideAPI DocumentationContributor Guide Next topic Installing
Useful Links python-docx @ GitHub python-docx @ PyPI Issue Tracker Quick search Navigation index next | python-docx 0.8.11 documentation Copyright 2013, Steve Canny. Created using Sphinx 1.8.5.Theme based on Read The Docs
TAGS:docx python documentation
<<< Thank you for your visit >>>
Websites to related : Digital Kingdom
keywords:
description:
Digital KingdomThis server hosts a bunch of stuff, but the only person who's super public about it is Robin Lee Powell, the own
keywords:
description:DataPro by ChemEng Software Design (DataPro.exe). DataPro is a program. Contains information on 3000+ chemical compounds,allows
keywords:
description:
Skip over navigation Washington Express Visas font-style: italic; margin: 0px
keywords:
description:Fastbolt is an ISO9001:2015, AS9100D & ITAR registered distributor of fasteners & components that offers custom solutions with a
keywords:
description:A front-end template that helps you build fast, modern mobile web apps.
Material
Design
Lite
keywords:
description:Alternative Medicine for Healthy Living
keywords:
description:Detailed ROI Tracking, PPC Ads, Website Design & Sales Acceleration. Data-driven insights to help you make more profitable and d
keywords:
description:Providing a surprisingly human shopping experience. Trusted and secure. Millions of domains to choose from.
Questions?+1-303-893
keywords:
description:
Newsroom | Downloads | Gallery | Our HR | Conta
keywords:
description:Flying Fingers yarn shop, located in scenic downtown Tarrytown, New York. There simply is no other place to get the best yarn in
Hot Websites