10000 GitHub - 0xAct/pdf2word
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

0xAct/pdf2word

 
 

Repository files navigation

pdf2word

60 lines40 lines of code implement multi-process PDF to Word conversion

New version implemented based on https://github.com/dothinking/pdf2docx

Usage

  • 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

ModuleNotFoundError: No module named '_tkinter' error handling

macOS environment

  1. Install homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  1. Use homebrew to install tkinter
brew install python-tk

Linux environment

Take Ubuntu as an example

sudo apt install python3-tk

Welcome to Star

Python Cookbook

License

Licensed under the MIT License

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%
0