79816178

Date: 2025-11-11 02:12:58
Score: 2.5
Natty:
Report link

# Source - https://stackoverflow.com/q

# Posted by troy_achilies

# Retrieved 2025-11-10, License - CC BY-SA 3.0

from docx import Document

from docx.shared import RGBColor

document = Document()

run = document.add_paragraph('some text').add_run()

font = run.font

font.color.rgb = RGBColor(0x42, 0x24, 0xE9)

p=document.add_paragraph('aaa')

document.save('demo1.docx')

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • No code block (0.5):
  • Low reputation (1):
Posted by: Claudia Garzón