Skip to content

Convert multiple .docx Word documents to .pdf files using a simple Python GUI built with Tkinter and the docx2pdf library.

Notifications You must be signed in to change notification settings

emh68/word-to-pdf-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Word to PDF Converter

Python Tkinter License: CC BY-NC 4.0

A simple desktop GUI application to convert Microsoft Word .docx files to .pdf format using the docx2pdf library.

Features

  • Convert one or more Word .docx files to .pdf.
  • Select multiple files and convert them all at once.
  • View and manage input and output paths in a list view.
  • Choose a custom output folder for each file.
  • Remove selected files from the list.
  • Log window to track file additions/removals, path settings, and conversion results.
  • Clear log output manually by selecting and deleting text.

How It Works

  1. Add Word Files – Select one or more .docx files to add to the conversion list.
  2. Set Output Path for Selected – Choose where each converted PDF will be saved.
  3. Remove Selected – Select the files you want to remove, then click the Remove Selected button.
  4. Convert All – Start the conversion of all added files.
  5. View Logs – Check the log window for real-time updates and results.

Note: Batch conversion may take some time. If you're converting more than two files at once, please be patient and allow the process to finish.

Requirements

  • Python 3.x
  • docx2pdf (installed in step #3 below)
  • tkinter (usually included with Python installations)

Getting Started

Follow the steps below to set up and run the word-to-pdf-converter locally.

1. Clone the repository

Open your terminal (Command Prompt, PowerShell, Git Bash, or macOS/Linux Terminal), then run:

git clone https://github.com/emh68/word-to-pdf-converter.git
cd word-to-pdf-converter

2. (Optional but recommended) Create and activate a virtual environment

This keeps dependencies isolated to this project.

Windows logo Windows (command line)

python -m venv venv
venv\Scripts\activate

Windows logo Windows (PowerShell)

If you're using PowerShell and activate doesn't work, try:

venv\Scripts\Activate.ps1

🍎 macOS/🐧Linux

python3 -m venv venv
source venv/bin/activate

3. Install the dependencies

Run the command below. This will install the required dependencies (in this case docx2pdf). If you get a "pip not found" error, try python -m pip install -r requirements.txt instead.

pip install -r requirements.txt

4. Run the application

python main.py 

Note: If you get a "command not found" error, try:

python3 main.py

🔗 Links

About

Convert multiple .docx Word documents to .pdf files using a simple Python GUI built with Tkinter and the docx2pdf library.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages