Added "Paths" collection to Page object.

Added matrix transformation to path operators.
This commit is contained in:
vadimy
2019-07-16 00:35:29 -04:00
parent 453faf50af
commit b9d0cca2a6
14 changed files with 73 additions and 34 deletions

View File

@@ -5,6 +5,7 @@
using Graphics.Operations;
using Tokenization.Scanner;
using XObjects;
using UglyToad.PdfPig.Geometry;
/// <summary>
///
@@ -23,8 +24,9 @@
internal IReadOnlyList<IGraphicsStateOperation> GraphicsStateOperations { get; }
public IReadOnlyList<Letter> Letters { get; }
public List<PdfPath> Paths { get; }
internal PageContent(IReadOnlyList<IGraphicsStateOperation> graphicsStateOperations, IReadOnlyList<Letter> letters,
internal PageContent(IReadOnlyList<IGraphicsStateOperation> graphicsStateOperations, IReadOnlyList<Letter> letters, List<PdfPath> paths,
IReadOnlyDictionary<XObjectType, List<XObjectContentRecord>> xObjects,
IPdfTokenScanner pdfScanner,
XObjectFactory xObjectFactory,
@@ -32,6 +34,7 @@
{
GraphicsStateOperations = graphicsStateOperations;
Letters = letters;
Paths = paths;
this.xObjects = xObjects;
this.pdfScanner = pdfScanner;
this.xObjectFactory = xObjectFactory;