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;

};

相关推荐
≮傷£≯√1 天前
Opencv VideoCapture
qt·opencv
ilvcn1 天前
在线 PDF 翻译工具实测:整份翻译保留表格版式,长文档处理方案
pdf
accept 99%1 天前
python版提取 PDF 的常用第三方库与工具
开发语言·python·pdf
雨田言炎1 天前
十、QThread多线程
linux·服务器·开发语言·前端·qt
zyplayer-doc2 天前
zyplayer-doc企业知识库能做什么:从文档创建、权限管理到AI问答的完整能力
大数据·javascript·数据库·人工智能·pdf·word
小短腿乄2 天前
java实现pdf加水印+签名
java·开发语言·pdf
常乐か2 天前
在 Ubuntu 24.04 中编译 Qt 5.15.2 项目完全指南
linux·qt·ubuntu
沫璃染墨2 天前
《Qt从零入门系列(二):Qt开发环境搭建——从Qt Creator到SDK配置》
c++·ide·qt
gb42152872 天前
python中unstructured库和langchain-unstructured库在解析pdf文件的时候的区别?
python·langchain·pdf
我是小灰灰吖2 天前
Ubuntu 22.04 切换为 X11 会话以解决 QT 桌面程序兼容性问题
linux·qt·ubuntu