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;

};

相关推荐
ShineWinsu9 小时前
对于Qt:事件分发器以及事件过滤器的解析
c++·qt·面试·gui·客户端·事件过滤器·事件分发器
泡海椒13 小时前
Java 生成资金流向图 PDF:jquick-pdf 树图(JTreeChartData)节点尺寸与间距的追问记录
java·python·pdf
开开心心就好14 小时前
电脑禁止自动休眠工具,还能按负载定时
算法·智能手机·pdf·电脑·word·音视频·lua
ShineWinsu1 天前
对于Qt:事件的解析
c++·qt·面试·笔试·gui·客户端·事件
前端fighter1 天前
2026年前端面试题总结(pdf版)
前端·pdf
西西弗Sisyphus1 天前
Qt QML 程序是怎么跑起来的(1)qml-only
开发语言·c++·qt
小灰灰搞电子2 天前
QAccel 类讲解与代码示例:Qt 3 中的键盘加速键管理
qt·计算机外设
ShineWinsu3 天前
对于Qt:重写事件步骤的解析
开发语言·c++·qt·客户端·事件·鼠标事件·步骤
敲上瘾3 天前
Qt控件通用属性:geometry、qrc资源到QSS样式表等
开发语言·c++·qt·ui
ShineWinsu3 天前
对于Qt:QFontDialog的解析
c++·qt·面试·gui·字体·客户端·qfontdialog