Skip to content

About

In python-docx package, as I know, you cannot extract number headings of chapters, sections,.., for examples 1.1, 2.1.2,.. so I create the function to extract them from python-docx package

Resources

Stars

2 stars

Watchers

1 watching

Forks

Latest commit

 

History

23 Commits

Folders and files

Repository files navigation

In python-docx package https://github.com/python-openxml/python-docx, as I know, you cannot extract number headings of chapters, sections like 1.1, 1.2,... so I create the python function to extract them.

Input: your path of docx files

Output: a list including number headings and name headings of docx files

Installation

In powershell, please start by "git clone https://github.com/nguyendangson/extract_number_heading_python-docx.git"

Then please run "pip install -r requirements.tx" to install python-docx or you can install python-docx by running "pip install python-docx"

Further Reading

This function was used as a solution for the following forum question:

About

In python-docx package, as I know, you cannot extract number headings of chapters, sections,.., for examples 1.1, 2.1.2,.. so I create the function to extract them from python-docx package

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages