Qt pdf文件操作

qt对于pdf文件操作,包括pdf文件合并;pdf里面页面重组新的pdf;pdf信息获取;接口如下所示:

#pragma once

#include <QObject>

#include "filetransformhandle_global.h"

class FILETRANSFORMHANDLE_EXPORT PdfFileOperatorHandle : public QObject

{

Q_OBJECT

public:

PdfFileOperatorHandle();

~PdfFileOperatorHandle();

// 指定目录所有pdf合并

bool pdfAllMerge(const QString& strSourceDir, const QString& strDesFilePath);

// 多个pdf合并

bool pdfMerge(QStringList lstFilePath, const QString& strDesFilePath);

// pdf取指定页面 例如1 2 3 重新组合成新的文件

bool pdfExtractAppointPages(const QString& strSourcePath, const QString& strDesFilePath, QStringList lstPages);

// pdf取指定页面 例如5-到末页 重新组合成新的文件

bool pdfExtractAppointToEndPages(const QString& strSourcePath, const QString& strDesFilePath, QStringList lstPages);

// pdf信息

bool pdfDumpInfoToTxt(const QString& strSourcePath, const QString& strDesFilePath);

bool runCommand(const QString& strParam);

private:

void _run(const QString& strParam);

private:

QString m_strError;

};

相关推荐
Felix_One4 天前
Qt 串口通信避坑指南:QSerialPort 的 5 个常见问题
qt
blasit7 天前
笔记:Qt C++建立子线程做一个socket TCP常连接通信
c++·qt·tcp/ip
百事牛科技12 天前
保护文档安全:PDF限制功能详解与实操
windows·pdf
范特西.i12 天前
QT聊天项目(8)
开发语言·qt
枫叶丹413 天前
【Qt开发】Qt界面优化(七)-> Qt样式表(QSS) 样式属性
c语言·开发语言·c++·qt
十五年专注C++开发13 天前
Qt deleteLater作用及源码分析
开发语言·c++·qt·qobject
开开心心就好13 天前
安卓开源应用,超时提醒紧急人护独居安全
windows·决策树·计算机视觉·pdf·计算机外设·excel·动态规划
kangzerun13 天前
SQLiteManager:一个优雅的Qt SQLite数据库操作类
数据库·qt·sqlite
金刚狼8813 天前
qt和qt creator的下载安装
开发语言·qt
追烽少年x13 天前
Qt中使用Zint库显示二维码
qt