mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-11 14:00:32 +08:00
23 lines
578 B
C++
23 lines
578 B
C++
#include "../HtmlFile.h"
|
|
#include "../../DesktopEditor/common/File.h"
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
std::wstring sPath = NSFile::GetProcessDirectory() + L"/../../Internal/Debug/";
|
|
|
|
CHtmlFile oFile;
|
|
|
|
std::wstring sXml = L"\
|
|
<html>\
|
|
<sdk>file:///D:/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb/Word/sdk-all.js</sdk>\
|
|
<file>file:///C:/Users/oleg.korshul/Desktop/original_message%20(5).html</file>\
|
|
<destination>D:/test/Document/</destination>\
|
|
</html>\
|
|
";
|
|
|
|
int nResult = oFile.Convert(sXml, sPath);
|
|
nResult;
|
|
|
|
return 0;
|
|
}
|