add operation processing for text state operations, support for matrix multiplication with tests and td operation support

This commit is contained in:
Eliot Jones
2017-11-29 22:55:53 +00:00
parent 157030ea31
commit ab5377884f
14 changed files with 263 additions and 11 deletions

View File

@@ -1,5 +1,7 @@
namespace UglyToad.Pdf.Graphics.Operations.TextState
{
using Content;
internal class SetWordSpacing : IGraphicsStateOperation
{
public const string Symbol = "Tw";
@@ -13,6 +15,13 @@
Spacing = spacing;
}
public void Run(IOperationContext operationContext, IResourceStore resourceStore)
{
var currentState = operationContext.GetCurrentState();
currentState.FontState.WordSpacing = Spacing;
}
public override string ToString()
{
return $"{Spacing} {Symbol}";