当前位置:网站首页>基于PyQt5完成的pdf转word
基于PyQt5完成的pdf转word
2022-06-09 03:51:00 【疯狂的豆包】
PyQt是Qt框架的Python语言实现,是最强大的GUI库之一。PyQt提供了一个设计良好的窗口控件集合,具有更方便的操作性。学过VB的同学会知道,相比与VB的使用,在界面设计上元素更丰富。
本文就是基于PyQt5完成的pdf转word功能,先看界面:

一、界面PdfZ.ui可参考之前的文章如何实现,程序代码如下:
from PyQt5 import QtCore, QtGui, QtWidgets
import base64
import os
from return_png import img as retu # 引入img变量,赋别名为pdf_cf
class Ui_PdfZ(object):
def setupUi(self, PdfZ):
tmp = open('return.png', 'wb') # 创建临时的文件
tmp.write(base64.b64decode(retu)) # 把这个one图片解码出来,写入文件中去。
tmp.close()
PdfZ.setObjectName("PdfZ")
PdfZ.resize(1400, 814)
PdfZ.setMinimumSize(QtCore.QSize(1400, 814))
PdfZ.setMaximumSize(QtCore.QSize(1400, 814))
palette = QtGui.QPalette()
边栏推荐
- ACM tutorial - Hill sort
- Research on MySQL open source license
- 并发操作之——ReentrantReadWriteLock
- SQL Server counts the data volume difference between today and yesterday that is greater than 10
- How to calculate the number of parameters in the LSTM layer
- Cereals mall -day13- goods on the shelves
- Software Test Engineer, to what extent can I get 1W in a month?
- Kotlin基础从入门到进阶系列讲解(入门篇) 文件存储的基本使用
- 【5月考试】ORACLE OCP 19C 通过
- Laravel determines whether the mailbox already exists and verifies whether the mailbox format is legal
猜你喜欢
![[软件工具][教程]一个很好用的可以将csdn博客文章导出word的工具使用教程](/img/40/556cd8c4868a93d4cc06a4a945475d.png)
[软件工具][教程]一个很好用的可以将csdn博客文章导出word的工具使用教程

初入软件测试职场的朋友看过来,初次编写测试用例的要点

基於FPGA的VGA顯示彩條、字符、圖片

域名解析(公网)

2022年【电商】测试优惠券如何编写测试用例?

Ideal使用小技巧

JS reverse font reverse crawling, a supplier platform reverse crawling practice

CPU surge problem location

Software Test Engineer, to what extent can I get 1W in a month?

Internet winter? How software testers go against the trend to enter high paid factories
随机推荐
Ideal使用小技巧
Google Earth engine (GEE) - pure NDVI and NDWI extraction using updatemask (taking China as an example)
(三)VGG复现
汇编:CPU结构 - FLAG标志寄存器和相关指令
互联网寒冬?软件测试人员如何逆势而行进入高薪大厂
Error 1130- host XXX is not allowed to connect to this MariaDB server
软件测试工程师,要做到什么程度,一个月才能拿1W?
National Natural Science Foundation Project query website
How to write test cases for [e-commerce] test coupons in 2022?
常用端口记录
Fault analysis how the MySQL database gets stuck after upgrading
What is operator footwall?
【优秀毕设】基于OpenCV的人脸识别打卡/签到/考勤管理系统(最简基本库开发、可基于树莓派)
Lead the team. Is your boss "dictatorial"? (deeply touched)
解决MYSQL库or表进行删除等操作时出现卡死等情况
How to calculate the number of parameters in the LSTM layer
SQL audit | here are the most commonly used SQL development rules for mysql/oracle
Webrtc introduction and simple application
word+正则表达式==快速批量添加图注题注(保姆级图文)
在线摩斯密码在线翻译转换工具