Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Oritk/python-docx

Open more actions menu
 
 

Repository files navigation

https://travis-ci.org/python-openxml/python-docx.svg?branch=master

python-docx is a Python library for creating and updating Microsoft Word (.docx) files.

More information is available in the python-docx documentation.

This fork adds support for font size using complex script. This is required for runs that need to have both direction instruciton (rtl) and size. In those cases, adding <w:sz w:val="??"/> to the documentis not enough and we need to add: <w:szCs w:val="??"/>

Usage:

run = p.add_run(line)

#ru.font.size = Pt(8) This line is redundant - but you can leave it

run.font.cs_size = Pt(8)

run.font.rtl = True

About

Create and modify Word documents with Python

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 93.4%
  • Gherkin 6.5%
  • Makefile 0.1%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.