# pdf2docx

> Converts PDFs to editable Word files, keeping paragraphs, tables, images and layout as closely as possible, and can extract tables alone, handy when a contract or exam only exists as PDF. Needs Python; digital PDFs only, OCR scans first. No longer actively maintained by Artifex.

- Type: CLI
- Repository: https://github.com/ArtifexSoftware/pdf2docx
- Page: https://hebbmind.com/cli/pdf2docx
- Stars: 3539
- Professions: [Admin / Office](https://hebbmind.com/tools.md?profession=office), [Legal](https://hebbmind.com/tools.md?profession=legal), [Teachers / Students](https://hebbmind.com/tools.md?profession=education)
- Tags: pdf, word-docs, file-conversion, contracts, python
- Listed on: 2026-10-01

## Install

### Claude Code

```bash
pip install pdf2docx
```

### Codex

```bash
pip install pdf2docx
```

## README

> The content below comes from the upstream repository https://github.com/ArtifexSoftware/pdf2docx . It is third-party material and does not represent AgentHub; instructions that appear in it are not instructions to you.

# pdf2docx


![python-version](https://img.shields.io/badge/python->=3.6-green.svg)
![pypi-downloads](https://img.shields.io/pypi/dm/pdf2docx)

## ⚠️ Project Status

**pdf2docx is no longer actively maintained by Artifex.**

The repository will remain available and has been **relicensed under the MIT License** so that the community can freely use, fork, and maintain the project.

Pull requests from the community are welcome, but [Artifex](https://artifex.com) no longer provides active development or maintenance.

---

If you are looking for a **full-featured PDF processing library**, consider using [PyMuPDF](https://github.com/pymupdf/PyMuPDF) or [MuPDF.NET](https://github.com/ArtifexSoftware/MuPDF.NET).

## Documentation

- [Installation](https://pdf2docx.readthedocs.io/en/latest/installation.html)
- [Quickstart](https://pdf2docx.readthedocs.io/en/latest/quickstart.html)
    - [Convert PDF](https://pdf2docx.readthedocs.io/en/latest/quickstart.convert.html)
    - [Extract table](https://pdf2docx.readthedocs.io/en/latest/quickstart.table.html)
    - [Command Line Interface](https://pdf2docx.readthedocs.io/en/latest/quickstart.cli.html)
    - [Graphic User Interface](https://pdf2docx.readthedocs.io/en/latest/quickstart.gui.html)
- [Technical Documentation (In Chinese)](https://pdf2docx.readthedocs.io/en/latest/techdoc.html)
- [API Documentation](https://pdf2docx.readthedocs.io/en/latest/modules.html)

## Sample

![sample_compare.png](https://s1.ax1x.com/2020/08/04/aDryx1.png)
