Commit 549661f5 authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander Trofimov
parent 242cff0b
...@@ -16,11 +16,17 @@ public: ...@@ -16,11 +16,17 @@ public:
std::wstring m_strImagesPath; std::wstring m_strImagesPath;
std::wstring m_strPresentationThemesPath; std::wstring m_strPresentationThemesPath;
bool m_bUseSystemFonts;
std::wstring m_strFontsDirectory;
public: public:
CAscEditorPDFPrinter() CAscEditorPDFPrinter()
{ {
m_strImagesPath = L""; m_strImagesPath = L"";
m_strPresentationThemesPath = L""; m_strPresentationThemesPath = L"";
m_bUseSystemFonts = false;
m_strFontsDirectory = L"";
} }
public: public:
......
...@@ -15,7 +15,9 @@ ...@@ -15,7 +15,9 @@
bool CAscEditorPDFPrinter::Print(std::string strBase64, std::wstring strDstFile) bool CAscEditorPDFPrinter::Print(std::string strBase64, std::wstring strDstFile)
{ {
CPdfWriterLib oWriter; CPdfWriterLib oWriter;
// TODO: fonts initialize // TODO: fonts system parameter use
CString sFonts(m_strFontsDirectory.c_str());
oWriter.SetFontDir(sFonts);
HRESULT hRes = S_OK; HRESULT hRes = S_OK;
try try
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment