Skip to content
프로젝트

소개

60줄의 코드로 멀티스레드 PDF-to-Word 변환 구현

생산성 및 자동화

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

pdf2word

60行40行代码实现多进程PDF转Word

新版本基于https://github.com/dothinking/pdf2docx实现

使用方法

  • clone或下载项目到本地
git clone [email protected]:simpleapples/pdf2word.git
  • 进入项目目录,建立虚拟环境,并安装依赖
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
  • 修改config.cfg文件,指定存放pdf和word文件的文件夹,以及同时工作的进程数
  • 执行python main.py

ModuleNotFoundError: No module named '_tkinter' 报错处理

macOS环境

  1. 安装homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  1. 使用homebrew安装tkinter
brew install python-tk

Linux环境

以ubuntu为例

sudo apt install python3-tk

欢迎Star

Python私房菜

License

采用 MIT 开源许可证

관련 프로젝트 살펴보기

불러오는 중…