Fix errors

This commit is contained in:
Oleg Korshul
2021-10-05 15:13:22 +03:00
parent 54e10c7b55
commit d7c4ceba92
11 changed files with 148 additions and 129 deletions

View File

@ -110,7 +110,7 @@ void CDjVuFile::ConvertToPdf(const std::wstring& wsDstPath)
if (m_pImplementation)
m_pImplementation->ConvertToPdf(wsDstPath);
}
#ifdef WASM_MODE
#ifdef BUILDING_WASM_MODULE
BYTE* CDjVuFile::GetStructure()
{
if (m_pImplementation)

View File

@ -336,7 +336,7 @@ void CDjVuFileImplementation::ConvertToPdf(const std::wstring& wsD
oPdf.SaveToFile(wsDstPath);
}
#ifdef WASM_MODE
#ifdef BUILDING_WASM_MODULE
class CData
{
protected:

View File

@ -79,7 +79,7 @@ public:
BYTE* ConvertToPixels(int nPageIndex, const int& nRasterW = -1, const int& nRasterH = -1, bool bIsFlip = false);
void ConvertToRaster(int nPageIndex, const std::wstring& wsDstPath, int nImageType, const int& nRasterW = -1, const int& nRasterH = -1);
void ConvertToPdf(const std::wstring& wsDstPath);
#ifdef WASM_MODE
#ifdef BUILDING_WASM_MODULE
BYTE* GetStructure();
BYTE* GetPageGlyphs(int nPageIndex, const int& nRasterW, const int& nRasterH);
BYTE* GetPageLinks (int nPageIndex, const int& nRasterW, const int& nRasterH);