mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
18 lines
496 B
C++
18 lines
496 B
C++
#include "../CEpubFile.h"
|
|
#include "../../DesktopEditor/common/File.h"
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
CEpubFile Epub;
|
|
std::wstring sFile = NSFile::GetProcessDirectory() + L"/../../../Files/Harry Potter 1.epub";
|
|
std::wstring sTmp = NSFile::GetProcessDirectory() + L"/tmp";
|
|
std::wstring sOutput = NSFile::GetProcessDirectory() + L"/output";
|
|
|
|
if (Epub.IsEbubFile(sFile))
|
|
{
|
|
Epub.SetTempDirectory(sTmp);
|
|
Epub.Convert(sFile, sOutput);
|
|
}
|
|
return 0;
|
|
}
|