mirror of
https://github.com/UglyToad/PdfPig.git
synced 2026-03-10 00:23:29 +08:00
add operation processing for text state operations, support for matrix multiplication with tests and td operation support
This commit is contained in:
@@ -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}";
|
||||
|
||||
Reference in New Issue
Block a user