#include "../doctrenderer.h"
#ifdef USE_PDF_RENDERER
#include "../../../PdfWriter/PdfRenderer.h"
#include "../../fontengine/ApplicationFonts.h"
#endif
int main(int argc, char *argv[])
{
#if 1
#if 1
std::wstring strXml = L"\
1\
3\
D:\\build_doc\
D:\\build_doc\\EditorWithChanges.bin\
D:\\activex\\AVS\\Sources\\TeamlabOffice\\trunk\\OfficeWeb\\Fonts\\native\
D:\\build_doc\\media\
D:\\activex\\AVS\\Sources\\TeamlabOffice\\trunk\\ServerComponents\\Test\\Applications\\TestAVSOfficeDocxFile2\\TestAVSOfficeDocxFile2\\bin\\x86\\presentationthemes\
\
D:\\build_doc\\changes\\changes0.json\
\
";
#else
std::wstring strXml = L"\
0\
0\
D:\\build_doc\
D:\\build_doc\\destination\
D:\\activex\\AVS\\Sources\\TeamlabOffice\\trunk\\OfficeWeb\\Fonts\\native\
D:\\build_doc\\media\
D:\\activex\\AVS\\Sources\\TeamlabOffice\\trunk\\ServerComponents\\Test\\Applications\\TestAVSOfficeDocxFile2\\TestAVSOfficeDocxFile2\\bin\\x86\\presentationthemes\
\
";
#endif
#else
std::wstring strXml = L"\
0\
0\
/home/oleg/build_doc\
/home/oleg/build_doc/EditorWithChanges.bin\
/home/oleg/AVS/Sources/TeamlabOffice/trunk/OfficeWeb/Fonts/native\
/home/oleg/build_doc/media\
/home/oleg/presentationthemes\
\
/home/oleg/build_doc/changes/changes0.json\
\
";
#endif
#if 1
NSDoctRenderer::CDoctrenderer oRenderer;
std::wstring sError;
oRenderer.Execute(strXml, sError);
#endif
#ifdef USE_PDF_RENDERER
CApplicationFonts oFonts;
oFonts.Initialize();
CPdfRenderer oPDF(&oFonts);
oPDF.SetTempFolder(L"D:\\test_pdf");
oPDF.OnlineWordToPdfFromBinary(L"D:\\test_pdf\\pdf.bin", L"D:\\test_pdf\\123.pdf");
#endif
return 0;
}