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

一、界面PdfC.ui可参考上文如何实现,程序代码如下:
import os
from PyQt5 import QtCore, QtGui, QtWidgets
import base64
from return_png import img as retu # 引入img变量,赋别名为pdf_cf
class Ui_PdfC(object):
def setupUi(self, PdfC):
tmp = open('return.png', 'wb') # 创建临时的文件
tmp.write(base64.b64decode(retu)) # 把这个one图片解码出来,写入文件中去。
tmp.close()
PdfC.setObjectName("PdfC")
PdfC.setWindowModality(QtCore.Qt.NonModal)
PdfC.resize(1400, 814)
PdfC.setMinimumSize(QtCore.QSize(1400, 814))
PdfC.setMaximumSize(QtCore.QSize(1400, 814))
边栏推荐
- 【LeetCode】第48天 - 1037. 有效的回旋镖
- Generics and decorators for typescript
- Detailed explanation of HLS live broadcast protocol m3u8
- Concurrent operation -- the difference between reentrantlock and synchronized
- Concurrent operation -- reentrantreadwritelock
- 如何撰写数据中台蓝图方案
- 故障分析 | DDL 导致的 Xtrabackup 备份失败
- The students of Turing class of Peking University won the first place in the global undergraduate competition and solved the EDA "neck sticking" technical problem!
- ArcGIS Runtime 离线gdb数据缺失问题处理
- Fault analysis how the MySQL database gets stuck after upgrading
猜你喜欢

word+正则表达式==快速批量添加图注题注(保姆级图文)
![[examination in May] Oracle OCP 19C passed](/img/ae/8b89cc9004064cec9e8c3ef4e15d21.jpg)
[examination in May] Oracle OCP 19C passed

Mongodb builds replica set cluster

【5月考试】ORACLE OCP 19C 通过

JVM memory view and setting ideas

大厂外包or自研公司?测试人找工作怎么选?

The talent gap is more than 500000, and the average salary is 20K? Network security, the next outlet for testers~

故障分析 | DDL 导致的 Xtrabackup 备份失败

汇编:Debug的常用命令
![[软件工具][教程]一个很好用的可以将csdn博客文章导出word的工具使用教程](/img/40/556cd8c4868a93d4cc06a4a945475d.png)
[软件工具][教程]一个很好用的可以将csdn博客文章导出word的工具使用教程
随机推荐
Method of accessing LAN by external network and how virtual machines installed by VM access each other in LAN
丰富的色彩变化
JS逆向字体反爬,某供应商平台反爬实践
JS reverse font reverse crawling, a supplier platform reverse crawling practice
Large factory outsourcing or self research company? How to choose a job for a tester?
C#. Net calling dynamic library DLL
Assembly: common commands for debug
unity物理引擎因为挤压导致的一些bug
HLS 直播协议m3u8详解
服务器注册使用
Implementing parallel computing framework with QT
Interface performance test: Web service interface test
并发操作之——ReentrantReadWriteLock
The talent gap is more than 500000, and the average salary is 20K? Network security, the next outlet for testers~
Error 5 occurred in the console input command net start MySQL console output system. Access denied. MySQL service is starting MySQL service failed to start. The service did not report any errors. Plea
域名解析(公网)
CPU surge problem location
Data: Kube flannel and kubernetes dashboard creation commands and configuration file contents
C#.net调用动态库dll注意事项
故障分析 | MySQL 中新建用户无法登陆的一种特殊场景