--- id: pdf2docx version: "0.5.13" license: MIT license_treatment: permissive maintenance: active --- # pdf2docx — Open source Python library converting pdf to docx. License: permissive · Maintenance: active · Downloads: 1.2M/mo ## What it is and what it does pdf2docx is a Python library that converts PDF documents into editable Word (.docx) files. It uses PyMuPDF for PDF parsing and python-docx for document generation, with additional support for table extraction and layout analysis via opencv-python-headless and numpy. The library provides both programmatic and command-line interfaces for conversion tasks. The project was originally maintained by Artifex but is now community-driven under the MIT license. It depends on several image processing and document manipulation libraries to reconstruct PDF content as structured Word documents. Users should be aware that active maintenance has transitioned to the community, and the description suggests considering PyMuPDF directly for more comprehensive PDF processing needs. Use it for: - Convert scanned or digital PDFs to editable Word documents for further editing - Extract tables from PDF reports and import them into Word format - Batch-convert multiple PDFs to .docx for document management workflows - Automate PDF-to-Word conversion in document processing pipelines ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Converts PDF files to Word documents (.docx format), with support for extracting tables and preserving layout and formatting. Yes, with conditions. The library is straightforward to install and suitable for basic PDF-to-Word conversion tasks. However, be aware that active maintenance has ended and the project is now community-supported. If you need robust, actively-maintained PDF handling, the description recommends PyMuPDF as an alternative. No known security vulnerabilities are reported. ## Install pip install pdf2docx uv add pdf2docx poetry add pdf2docx ## Installing pdf2docx Before you install: Low friction installation with a pure-Python wheel. Maintenance is active, though the project description notes it is no longer actively maintained by Artifex and relies on community contributions. License in practice: MIT license permits free use, modification, and distribution with minimal restrictions, making it suitable for both open-source and commercial projects. Quickstart: pip install pdf2docx from pdf2docx import Converter converter = Converter('input.pdf') converter.convert('output.docx') converter.close() Requires Python >= 3.10. opencv-python-headless requires a system with image processing libraries available. Verify before relying: - Conversion quality and accuracy across different PDF types and layouts - Performance characteristics on large or complex PDF documents - Extent of table extraction accuracy and edge-case handling ## Package facts - License: MIT (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 1.2M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags pdf to docx conversion, pdf to word python, extract pdf to document, pdf table extraction, batch pdf conversion, pdf layout preservation, document-conversion, pdf-processing [View on SkillFed](https://skillfed.io/packages/pdf2docx) · [View on PyPI](https://pypi.org/project/pdf2docx/)