简易pdf转word程序(包含exe文件下载地址)

使用pdf2docx来实现的一个pdf转word小程序

库:pdf2docx,pyqt5,os

# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'E:\python\项目\pdf转word\window.ui'
#
# Created by: PyQt5 UI code generator 5.15.4
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again.  Do not edit this file unless you know what you are doing.



from PyQt5 import QtCore, QtGui, QtWidgets
import os
from pdf2docx import Converter



class Ui_MainWindow(object):
    def __init__(self):
        # self.actionfileopen.triggered.connect(self.open_file)
        self.filename=""
        self.filepath=""
        self.filesavepath=""

    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(809, 600)
        MainWindow.setWindowTitle("pdf转word")
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.toolButton = QtWidgets.QToolButton(self.centralwidget)
        self.toolButton.setGeometry(QtCore.QRect(670, 70, 37, 18))
        self.toolButton.setObjectName("toolButton")
        self.toolButton.clicked.connect(self.find)
        self.lineEdit = QtWidgets.QLineEdit(self.centralwidget)
        self.lineEdit.setEnabled(True)
        self.lineEdit.setGeometry(QtCore.QRect(140, 70, 521, 21))
        self.lineEdit.setObjectName("lineEdit")
    
  • 1
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值