Skip to content

Commit

Permalink
[TO REMOVE] Implement UglyToad/PdfPig#879
Browse files Browse the repository at this point in the history
  • Loading branch information
BobLd committed Aug 24, 2024
1 parent 3675f0e commit 6713306
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions UglyToad.PdfPig.Rendering.Skia/SkiaStreamProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -181,5 +181,15 @@ private float GetScaledLineWidth()

return (float)(currentState.LineWidth * currentState.CurrentTransformationMatrix.A);
}

public override void SetNamedGraphicsState(NameToken stateName)
{
if (ResourceStore.GetExtendedGraphicsStateDictionary(stateName) is null) // This will be fixed by https://github.com/UglyToad/PdfPig/pull/879
{
return;
}

base.SetNamedGraphicsState(stateName);
}
}
}

0 comments on commit 6713306

Please sign in to comment.