mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-04-07 13:55:33 +08:00
.
This commit is contained in:
@ -83,7 +83,7 @@ void CDjVuFile::DrawPageOnRenderer(IRenderer* pRenderer, int nPageIndex, bool* p
|
|||||||
if (m_pImplementation)
|
if (m_pImplementation)
|
||||||
m_pImplementation->DrawPageOnRenderer(pRenderer, nPageIndex, pBreak);
|
m_pImplementation->DrawPageOnRenderer(pRenderer, nPageIndex, pBreak);
|
||||||
}
|
}
|
||||||
void CDjVuFile::ConvertToRaster(int nPageIndex, const std::wstring& wsDstPath, int nImageType, const int& nRasterW, const int& nRasterH)
|
void CDjVuFile::ConvertToRaster(int nPageIndex, const std::wstring& wsDstPath, int nImageType, const int nRasterW, const int nRasterH)
|
||||||
{
|
{
|
||||||
if (m_pImplementation)
|
if (m_pImplementation)
|
||||||
m_pImplementation->ConvertToRaster(nPageIndex, wsDstPath, nImageType, nRasterW, nRasterH);
|
m_pImplementation->ConvertToRaster(nPageIndex, wsDstPath, nImageType, nRasterW, nRasterH);
|
||||||
|
|||||||
@ -64,7 +64,7 @@ public:
|
|||||||
virtual int GetPagesCount();
|
virtual int GetPagesCount();
|
||||||
virtual void GetPageInfo(int nPageIndex, double* pdWidth, double* pdHeight, double* pdDpiX, double* pdDpiY);
|
virtual void GetPageInfo(int nPageIndex, double* pdWidth, double* pdHeight, double* pdDpiX, double* pdDpiY);
|
||||||
virtual void DrawPageOnRenderer(IRenderer* pRenderer, int nPageIndex, bool* pBreak);
|
virtual void DrawPageOnRenderer(IRenderer* pRenderer, int nPageIndex, bool* pBreak);
|
||||||
virtual void ConvertToRaster(int nPageIndex, const std::wstring& path, int nImageType, const int& nRasterW = -1, const int& nRasterH = -1);
|
virtual void ConvertToRaster(int nPageIndex, const std::wstring& path, int nImageType, const int nRasterW = -1, const int nRasterH = -1);
|
||||||
|
|
||||||
void ConvertToPdf(const std::wstring& path);
|
void ConvertToPdf(const std::wstring& path);
|
||||||
};
|
};
|
||||||
|
|||||||
@ -260,7 +260,7 @@ namespace PdfReader
|
|||||||
m_pInternal->m_pPDFDocument->DisplayPage(&oRendererOut, nPageIndex, 72.0, 72.0, 0, false, true, false);
|
m_pInternal->m_pPDFDocument->DisplayPage(&oRendererOut, nPageIndex, 72.0, 72.0, 0, false, true, false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
void CPdfReader::ConvertToRaster(int nPageIndex, const std::wstring& wsDstPath, int nImageType, const int& nRasterW, const int& nRasterH)
|
void CPdfReader::ConvertToRaster(int nPageIndex, const std::wstring& wsDstPath, int nImageType, const int nRasterW, const int nRasterH)
|
||||||
{
|
{
|
||||||
CFontManager *pFontManager = m_pInternal->m_pAppFonts->GenerateFontManager();
|
CFontManager *pFontManager = m_pInternal->m_pAppFonts->GenerateFontManager();
|
||||||
CFontsCache* pFontCache = new CFontsCache();
|
CFontsCache* pFontCache = new CFontsCache();
|
||||||
|
|||||||
@ -63,7 +63,7 @@ namespace PdfReader
|
|||||||
virtual int GetPagesCount();
|
virtual int GetPagesCount();
|
||||||
virtual void GetPageInfo(int nPageIndex, double* pdWidth, double* pdHeight, double* pdDpiX, double* pdDpiY);
|
virtual void GetPageInfo(int nPageIndex, double* pdWidth, double* pdHeight, double* pdDpiX, double* pdDpiY);
|
||||||
virtual void DrawPageOnRenderer(IRenderer* pRenderer, int nPageIndex, bool* pBreak);
|
virtual void DrawPageOnRenderer(IRenderer* pRenderer, int nPageIndex, bool* pBreak);
|
||||||
virtual void ConvertToRaster(int nPageIndex, const std::wstring& path, int nImageType, const int& nRasterW = -1, const int& nRasterH = -1);
|
virtual void ConvertToRaster(int nPageIndex, const std::wstring& path, int nImageType, const int nRasterW = -1, const int nRasterH = -1);
|
||||||
|
|
||||||
EError GetError();
|
EError GetError();
|
||||||
double GetVersion();
|
double GetVersion();
|
||||||
|
|||||||
@ -7,7 +7,7 @@
|
|||||||
QT -= core
|
QT -= core
|
||||||
QT -= gui
|
QT -= gui
|
||||||
|
|
||||||
VERSION = 2.0.2.401
|
VERSION = 2.0.2.402
|
||||||
DEFINES += INTVER=$$VERSION
|
DEFINES += INTVER=$$VERSION
|
||||||
|
|
||||||
TEMPLATE = app
|
TEMPLATE = app
|
||||||
|
|||||||
@ -2295,7 +2295,8 @@ namespace BinXlsxRW {
|
|||||||
else if(c_oSer_Pane::State == type)
|
else if(c_oSer_Pane::State == type)
|
||||||
{
|
{
|
||||||
pPane->m_oState.Init();
|
pPane->m_oState.Init();
|
||||||
pPane->m_oState->FromString(m_oBufferedStream.GetString4(length));
|
std::wstring sVal = m_oBufferedStream.GetString4(length);
|
||||||
|
pPane->m_oState->FromString(sVal.c_str());
|
||||||
}
|
}
|
||||||
else if(c_oSer_Pane::TopLeftCell == type)
|
else if(c_oSer_Pane::TopLeftCell == type)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -157,7 +157,7 @@ void CXpsFile::DrawPageOnRenderer(IRenderer* pRenderer, int nPageIndex, bool* pB
|
|||||||
|
|
||||||
m_pInternal->m_pDocument->DrawPage(nPageIndex, pRenderer, pBreak);
|
m_pInternal->m_pDocument->DrawPage(nPageIndex, pRenderer, pBreak);
|
||||||
}
|
}
|
||||||
void CXpsFile::ConvertToRaster(int nPageIndex, const std::wstring& wsDstPath, int nImageType, const int& nRasterW, const int& nRasterH)
|
void CXpsFile::ConvertToRaster(int nPageIndex, const std::wstring& wsDstPath, int nImageType, const int nRasterW, const int nRasterH)
|
||||||
{
|
{
|
||||||
CFontManager *pFontManager = m_pInternal->m_pAppFonts->GenerateFontManager();
|
CFontManager *pFontManager = m_pInternal->m_pAppFonts->GenerateFontManager();
|
||||||
CFontsCache* pFontCache = new CFontsCache();
|
CFontsCache* pFontCache = new CFontsCache();
|
||||||
|
|||||||
@ -59,7 +59,7 @@ public:
|
|||||||
virtual int GetPagesCount();
|
virtual int GetPagesCount();
|
||||||
virtual void GetPageInfo(int nPageIndex, double* pdWidth, double* pdHeight, double* pdDpiX, double* pdDpiY);
|
virtual void GetPageInfo(int nPageIndex, double* pdWidth, double* pdHeight, double* pdDpiX, double* pdDpiY);
|
||||||
virtual void DrawPageOnRenderer(IRenderer* pRenderer, int nPageIndex, bool* pBreak);
|
virtual void DrawPageOnRenderer(IRenderer* pRenderer, int nPageIndex, bool* pBreak);
|
||||||
virtual void ConvertToRaster(int nPageIndex, const std::wstring& path, int nImageType, const int& nRasterW = -1, const int& nRasterH = -1);
|
virtual void ConvertToRaster(int nPageIndex, const std::wstring& path, int nImageType, const int nRasterW = -1, const int nRasterH = -1);
|
||||||
|
|
||||||
void ConvertToPdf(const std::wstring& wsDstPath);
|
void ConvertToPdf(const std::wstring& wsDstPath);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user