docx2pdf
Convert docx to pdf on Windows or macOS directly using Microsoft Word (must be installed).
Decision gist · record as of 2026-08-14
Yes, if you have Microsoft Word installed on Windows or macOS and need reliable DOCX-to-PDF conversion with formatting preservation. The low install friction and permissive MIT license make it straightforward to try. However, the aging maintenance status (last release December 2021, no recent commits) means you should verify compatibility with your current Word version before relying on it in production. Not suitable for headless or server-side conversion.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Microsoft Word must be installed on the target system (Windows or macOS); the package is a thin automation wrapper around Word's native conversion capability.
- Low install friction with a pure-Python wheel.
- Maintenance is aging—last release was 2021-12-11 and the repository shows no recent activity despite 602 stars—but the package remains archived-free and dependencies are stable.
License · maintenance · safety
MIT (permissive) — MIT license permits free use, modification, and distribution with minimal restrictions, making it suitable for both open-source and commercial projects.
last release 2021-12-11 (1707 days) · last repo commit 2025-10-11 · 602 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 932,618 downloads/mo, #4,699 on PyPI
Alternatives
Verify before relying
pip install docx2pdf
from docx2pdf import convert
convert("input.docx")
convert("input.docx", "output.pdf")
convert("my_docx_folder/")- Whether the package works reliably with recent versions of Microsoft Word on Windows and macOS.
- Whether tqdm progress bar rendering in Jupyter requires ipywidgets as stated in the description or if it's optional.
- Current state of pywin32 and appscript dependencies and their compatibility with modern OS versions.
What it is and what it does
docx2pdf is a lightweight automation wrapper that converts Microsoft Word DOCX files to PDF by delegating to Word itself rather than reimplementing document rendering. On Windows it uses win32com to drive Word via COM, and on macOS it uses AppleScript (JXA) to control Word through native OS automation. The package works both as a command-line tool and as a Python library, supporting single-file conversion, batch folder conversion, and explicit output path specification.
Because it relies on Word's own PDF export rather than a document parser, it preserves formatting, fonts, and complex layouts accurately. The trade-off is a hard dependency on having Microsoft Word installed on the conversion machine—it cannot work in headless environments or on systems without Word. The package is aging (last release December 2021) and shows no recent maintenance activity, though it remains stable for its narrow use case.
Use it for
- Batch convert folders of DOCX files to PDF on a Windows or macOS workstation where Word is already installed.
- Automate DOCX-to-PDF conversion in Python scripts or Jupyter notebooks without implementing document parsing.
- Preserve complex Word formatting (styles, embedded objects, fonts) that simpler converters might lose or misrender.
- Command-line bulk conversion of DOCX files with optional output directory specification.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you have Microsoft Word installed on Windows or macOS and need reliable DOCX-to-PDF conversion with formatting preservation.
The low install friction and permissive MIT license make it straightforward to try. However, the aging maintenance status (last release December 2021, no recent commits) means you should verify compatibility with your current Word version before relying on it in production. Not suitable for headless or server-side conversion.
Install
docx2pdf on PyPI
Before you install
Low install friction with a pure-Python wheel. Maintenance is aging—last release was 2021-12-11 and the repository shows no recent activity despite 602 stars—but the package remains archived-free and dependencies are stable.
Microsoft Word must be installed on the target system (Windows or macOS); the package is a thin automation wrapper around Word's native conversion capability.
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 docx2pdf
from docx2pdf import convert
convert("input.docx")
convert("input.docx", "output.pdf")
convert("my_docx_folder/")
Verify before relying
- Whether the package works reliably with recent versions of Microsoft Word on Windows and macOS.
- Whether tqdm progress bar rendering in Jupyter requires ipywidgets as stated in the description or if it's optional.
- Current state of pywin32 and appscript dependencies and their compatibility with modern OS versions.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.5 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 4 packagespywin32tqdmimportlib_metadataappscript |
| Maintenance | Aging 1,707 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 932,618 / month, #4,699 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Environment :: MacOS XEnvironment :: Win32 (MS Windows)License :: OSI Approved :: MIT LicenseOperating System :: MacOSOperating System :: Microsoft :: WindowsProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Office/Business :: Office SuitesTopic :: Software Development :: Libraries |
Evidence: docx2pdf-0.1.8-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “docx to pdf conversion”
- docx2pdfConverts DOCX files to PDF on Windows or macOS by automating…
- pdf2docxConverts PDF files to Word documents (.docx format), with support for…
- pypandocPypandoc wraps pandoc, a universal document converter, letting you…
Give your agent the search over MCP, or paste the wish link into any chat.
More Libraries packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.
Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
See also doc2docx · pdf2docx · pyhwpx · cloudmersive-convert-api-client · html2docx · spire-doc · pdfservices-sdk · python-hwpx · docx · docx-mailmerge2