Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

change text color docx-python

from docx import Document
from docx.shared import RGBColor
document = Document()
run = document.add_paragraph().add_run('some text')
font = run.font
font.color.rgb = RGBColor(0x42, 0x24, 0xE9)
p=document.add_paragraph('aaa')
document.save('demo1.docx')
Comment

PREVIOUS NEXT
Code Example
Python :: how to split image dataset into training and test set keras 
Python :: python save input to text file 
Python :: pandas read_csv multiple separator 
Python :: pyqt tex 
Python :: convert hex to decimal python 
Python :: how to draw polygon in tkinter 
Python :: read data from yaml file in python 
Python :: embed_author discord.py 
Python :: python download file from web 
Python :: python install gimp 
Python :: delete turtle 
Python :: how to get the live website html in python 
Python :: python get filename without extension 
Python :: python print return code of requests 
Python :: how to read a .exe file in python 
Python :: log base in python 
Python :: how to parse dicts in reqparse in flask 
Python :: find nan values in a column pandas 
Python :: playsound 
Python :: python remove duplicates from a list 
Python :: how to add up everything in a list python 
Python :: random word python 
Python :: sklearn rmse 
Python :: pandas get column values distinct 
Python :: ready command discord.py 
Python :: clock in python 
Python :: pandas groupby histogram 
Python :: python exe not working on other pc 
Python :: print all of dataframe 
Python :: append attribute ofpython 
ADD CONTENT
Topic
Content
Source link
Name
4+8 =