一品网
  • 首页

将pdf转换为word


pip install pdf2docx
代码如下:
from pdf2docx import parse
import os

files = os.listdir()
for file in files:
if os.path.splitext(file)[1] == '.pdf':
parse(f'{os.path.splitext(file)[0]}.pdf', f'{os.path.splitext(file)[0]}.docx')
os.system('pause')
python脚本

相关


python脚本 – 删除指定天数前的文件

python小白记录一 ——python脚本生成windows可执行exe

linux 执行 nohup python脚本,print无输出

在Python脚本中调用Django环境

QT调用python脚本时遇到的坑(十一大坑全有)

关于fiddler抓包一键生成python脚本

python脚本中调用批处理命令

[Python学习笔记-013] 一种Python脚本运行轨迹的查看方法

将python脚本打包为exe可执行文件

C++调试python脚本

标签

一品网 冀ICP备14022925号-6