60 lines40 lines of code implement multi-process PDF to Word conversion
New version implemented based on https://github.com/dothinking/pdf2docx
- Clone or download the project locally
git clone git@github.com:simpleapples/pdf2word.git
- Enter the project directory, create a virtual environment, and install dependencies
cd pdf2word
python3 -m venv venv
# Linux
source venv/bin/activate
# Windows
venv\Scripts\activate
# Python < 3.10
pip install -r requirements.txt
# Python 3.10 or later
pip install -r requirements_3_10.txt
- Modify the config.cfg file to specify the folders for storing PDF and Word files, as well as the number of concurrent processes
- Run
python main.py
- Install homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- Use homebrew to install tkinter
brew install python-tk
Take Ubuntu as an example
sudo apt install python3-tk
Welcome to Star
Licensed under the MIT License