Build drawingfile

This commit is contained in:
Svetlana Kulikova
2025-03-04 18:49:04 +03:00
parent 0796745158
commit 462556599f
2 changed files with 18 additions and 4 deletions

View File

@ -57,7 +57,9 @@
#include "../DesktopEditor/raster/Metafile/MetaFileCommon.h"
#include "../UnicodeConverter/UnicodeConverter.h"
#ifndef BUILDING_WASM_MODULE
#include "../Common/Network/FileTransporter/include/FileTransporter.h"
#endif
#if defined(GetTempPath)
#undef GetTempPath
@ -3675,7 +3677,7 @@ std::wstring CPdfWriter::GetDownloadFile(const std::wstring& sUrl, const std::ws
if (!bIsNeedDownload)
return L"";
#ifndef BUILDING_WASM_MODULE
std::wstring sTempFile = GetTempFile(wsTempDirectory);
NSNetwork::NSFileTransport::CFileDownloader oDownloader(sUrl, false);
oDownloader.SetFilePath(sTempFile);
@ -3685,7 +3687,7 @@ std::wstring CPdfWriter::GetDownloadFile(const std::wstring& sUrl, const std::ws
if (NSFile::CFileBinary::Exists(sTempFile))
NSFile::CFileBinary::Remove(sTempFile);
#endif
return L"";
}
PdfWriter::CAnnotAppearanceObject* CPdfWriter::DrawAP(PdfWriter::CAnnotation* pAnnot, BYTE* pRender, LONG nLenRender)