Merge pull request 'Feature pdf new renderer command' (#586) from feature/pdf-new-command into release/v9.3.0

Reviewed-on: https://git.onlyoffice.com/ONLYOFFICE/core/pulls/586
This commit is contained in:
Oleg Korshul
2025-12-25 11:37:22 +00:00
10 changed files with 162 additions and 13 deletions

View File

@ -886,12 +886,12 @@ namespace Aggplus
if (isCurve)
{
std::vector<PointD> points = GetPoints(idx, 4);
area = 3.0 * (points[3].Y - points[0].Y) * (points[1].X + points[2].X)
area = 3.0 * ((points[3].Y - points[0].Y) * (points[1].X + points[2].X)
- (points[3].X - points[0].X) * (points[1].Y + points[2].Y)
+ points[1].Y * (points[0].X - points[2].X)
- points[1].X * (points[0].Y - points[2].Y)
+ points[3].Y * (points[2].X + points[0].X / 3.0)
- points[3].X * (points[2].Y + points[0].Y / 3.0) / 20.0;
- points[3].X * (points[2].Y + points[0].Y / 3.0)) / 20.0;
}
else
{

View File

@ -36,7 +36,7 @@
#include "../fontengine/FontManager.h"
#include "../raster/BgraFrame.h"
#include "../common/StringExt.h"
#include "../GraphicsPath.h"
#include "GraphicsPath.h"
// этот класс нужно переписать. должно работать как и в js
// а не просто на каждом символе переключаться, если нужно