Commit 3b3cf754 authored by ElenaSubbotina's avatar ElenaSubbotina

Merge branch 'develop' of https://github.com/ONLYOFFICE/core into develop

parents 32c35803 cf8d2082
......@@ -314,6 +314,10 @@ namespace NSOnlineOfficeBinToPdf
{
pPdf->NewPage();
pPdf->BeginCommand(c_nPageType);
// TODO:
pPdf->put_PenLineStartCap(Aggplus::LineCapFlat);
pPdf->put_PenLineEndCap(Aggplus::LineCapFlat);
break;
}
case ctPageEnd:
......@@ -346,6 +350,28 @@ namespace NSOnlineOfficeBinToPdf
pPdf->put_PenSize(ReadInt(current, curindex) / 100000.0);
break;
}
case ctPenDashStyle:
{
BYTE nDashType = *current++;
curindex++;
switch (nDashType)
{
case Aggplus::DashStyleCustom:
{
int nCountDash = ReadInt(current, curindex);
double* pDash = new double(nCountDash);
for (int nDash = 0; nDash < nCountDash; ++nDash)
{
pDash[nDash] = ReadInt(current, curindex) / 100000.0;
}
pPdf->PenDashPattern(pDash, nCountDash);
}
default:
pPdf->put_PenDashStyle(nDashType);
}
break;
}
case ctPenLineJoin:
{
pPdf->put_PenLineJoin(*current);
......
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