Commit 59372212 authored by Ilya.Kirillov's avatar Ilya.Kirillov Committed by Alexander Trofimov

Сделано, чтобы все ридеры работали по одной схеме.

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@63804 954022d7-b5bf-4e40-9824-e11837661b57
parent a8cd29df
......@@ -251,10 +251,6 @@ void CDjVuFileImplementation::CreateFrame(IRenderer* pRenderer, GP
double dRendWidth = 0;
double dRendHeight = 0;
pRenderer->NewPage();
pRenderer->put_Width(25.4 * nWidth / dRendDpiX);
pRenderer->put_Height(25.4 * nHeight / dRendDpiY);
pRenderer->get_Width(&dRendWidth);
pRenderer->get_Height(&dRendHeight);
......
......@@ -409,20 +409,13 @@ namespace PdfReader
}
void RendererOutputDev::StartPage(int nPageIndex, GrState *pGState)
{
m_pRenderer->NewPage();
m_pRenderer->BeginCommand(c_nPageType);
// Переводим пункты в миллиметры
double dPageHeight = PDFCoordsToMM(pGState->GetPageHeight());
double dPageWidth = PDFCoordsToMM(pGState->GetPageWidth());
m_arrMatrix[0] = 1; m_arrMatrix[1] = 0;
m_arrMatrix[2] = 0; m_arrMatrix[3] = 1;
m_arrMatrix[4] = 0; m_arrMatrix[5] = 0;
m_pRenderer->put_Width(dPageWidth);
m_pRenderer->put_Height(dPageHeight);
m_bTransparentGroup = false;
m_bTransparentGroupSoftMask = false;
......
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