All Tutorials

Python Docx from Beginner to Winner

Python Docx from Beginner to Winner
Python Docx from Beginner to Winner

Python Docx from Beginner to Winner

Learn How to Automate Microsoft Word Files

What you’ll learn

Python Docx from Beginner to Winner

  • Create Docx files with Python
  • Change the font color and size
  • Change font name, use TTF fonts
  • Insert images and paragraphs
  • Align paragraphs and images
  • Set/Unset bold, italic, and underline
  • Set different underline styles: single, dash, dot dash
  • Insert tables
  • Change the internal XML data
  • Add page number


  • Basic Knowledge of Python
  • You need Python 3.8.x or later
  • Visual Studio Code (Recommended)
  • Visual Studio Code “Python from Microsoft” and “Pylance from Microsoft” extensions
  • Visual Studio Code “XML Tools” extension
  • 7zip or similar
  • Eager to learn


Welcome to Python Docx from Beginner to Winner!

Here we will learn together how to use the python-Docx module to generate dynamic Docx files! Docx files automation with Python will become to you as easy as pie!

In each session, we will replicate a Microsoft Docx previously created by hand.

Together we will explore python-Docx API, we will look at its code, will debug its code, and will improve its code!

It will be fun, bold, and memorable!

Also, we will take a look at its internal XML code, we will compare it with the original one, will understand how it works and will change it in our favor!

After taking the first session you will be already able to:

  • Insert paragraphs;
  • Insert images;
  • Insert tables;
  • Format tables;
  • Align paragraphs and images;
  • Change paragraph font name and size;
  • Use TTF fonts;
  • Change paragraph color;
  • Add/remove bold, italic, and underline;
  • Add different styles of underlining: single, double line, wave, and more;
  • Create your paragraph styles;
  • Look at its internal XML code, understand it and change it;
  • Add pagination.
Quite a journey right?

Join me in this challenge of exploring the python-Docx module, we have a lot to learn!

Become a winner and start automating your Microsoft Docx files now!

Key Concepts: Insert paragraphs, insert images, insert tables, format tables, align paragraphs, align images, change paragraph font name, change paragraph font size, use TTF fonts (TrueType Fonts), change paragraph color, add boldly, remove bold, add italic, remove italic, add underline, remove underline, add single line underline, add wavy underline, add double line accentuate, create styles, pagination.

Who this course is for:

  • Python-dev Beginner/Intermediate who wants to automate the creation and processing of Docx documents
  • Is anyone interested in Docx automation
  • Everyone who wants to do more with less

Udemy Course Free Download

Get Course Now