mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-15 21:49:48 +08:00
37 lines
1.1 KiB
C++
37 lines
1.1 KiB
C++
#ifndef _PDF_FILE_H
|
|
#define _PDF_FILE_H
|
|
|
|
#ifndef PDFFILE_USE_DYNAMIC_LIBRARY
|
|
#define PDFFILE_DECL_EXPORT
|
|
#else
|
|
#include "../DesktopEditor/common/base_export.h"
|
|
#define PDFFILE_DECL_EXPORT Q_DECL_EXPORT
|
|
#endif
|
|
|
|
#include "../DesktopEditor/graphics/pro/Fonts.h"
|
|
#include "../DesktopEditor/xmlsec/src/include/Certificate.h"
|
|
|
|
class CPdfFile_Private;
|
|
class PDFFILE_DECL_EXPORT CPdfFile
|
|
{
|
|
public:
|
|
CPdfFile(NSFonts::IApplicationFonts* pAppFonts, bool isPDFA = false);
|
|
~CPdfFile();
|
|
|
|
void SetTempDirectory(const std::wstring& wsPath);
|
|
bool LoadFromFile(const std::wstring& wsSrcFile, const std::wstring& wsPassword = L"");
|
|
bool EditPdf(const std::wstring& wsDstFile = L"");
|
|
bool EditClose();
|
|
bool EditPage (int nPageIndex);
|
|
bool DeletePage(int nPageIndex);
|
|
bool AddPage (int nPageIndex);
|
|
void Sign(const double& dX, const double& dY, const double& dW, const double& dH, const std::wstring& wsPicturePath, ICertificate* pCertificate);
|
|
void PageRotate(int nRotate);
|
|
|
|
void TEST(int i);
|
|
private:
|
|
CPdfFile_Private* m_pInternal;
|
|
};
|
|
|
|
#endif // _PDF_FILE_H
|