Tag

word-processing

0 views collected around this technical thread.

Test Development Learning Exchange
Test Development Learning Exchange
Sep 2, 2024 · Fundamentals

Python‑docx Guide: Extract, Create, and Manipulate Word Documents

This tutorial demonstrates how to use the python‑docx library to extract text and images, create new documents, replace content, add pictures, build and fill tables, delete paragraphs, set styles, and insert headers and footers in Word files, providing ready‑to‑run code examples for each operation.

Pythonautomationdocx
0 likes · 6 min read
Python‑docx Guide: Extract, Create, and Manipulate Word Documents
Python Programming Learning Circle
Python Programming Learning Circle
Apr 16, 2024 · Fundamentals

Using python-docx to Create and Manipulate Word Documents in Python

This article introduces the python-docx library, explains how to install it, and provides a comprehensive code example that demonstrates creating Word documents, adding headings, formatted text, images, tables, and saving the file, along with links to official documentation and GitHub resources.

PythonTutorialautomation
0 likes · 5 min read
Using python-docx to Create and Manipulate Word Documents in Python
Python Programming Learning Circle
Python Programming Learning Circle
Dec 11, 2021 · Backend Development

Batch Generating Word Documents from Excel Using Python: Two Solutions with python-docx and zipfile

This article demonstrates how to automate the replacement of placeholders in Word (.doc/.docx) files with data from an Excel sheet using Python, presenting two approaches—one based on python-docx and win32com, and another that manipulates the underlying zip archive with the zipfile module—while addressing common pitfalls and preserving document formatting.

Excelautomationdocx
0 likes · 11 min read
Batch Generating Word Documents from Excel Using Python: Two Solutions with python-docx and zipfile