Skip to content

Oritk/python-docx

 
 

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%
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy