Skip to content

Commit bd21f40

Browse files
committed
Update PdfPig to PdfPig 0.1.11-alpha-20250330-5fb36
1 parent 1673b0f commit bd21f40

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

UglyToad.PdfPig.Rendering.Skia/Helpers/SKPaintCache.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,10 @@ public SKPaintCache(bool isAntialias, float minimumLineWidth)
4848
#if DEBUG
4949
_imageDebugPaint = new SKPaint()
5050
{
51-
Style = SKPaintStyle.Fill,
51+
Style = SKPaintStyle.StrokeAndFill,
5252
Color = new SKColor(SKColors.IndianRed.Red, SKColors.IndianRed.Green, SKColors.IndianRed.Blue, 150),
53-
IsAntialias = _isAntialias
53+
IsAntialias = _isAntialias,
54+
StrokeWidth = 2
5455
};
5556
#endif
5657
}

UglyToad.PdfPig.Rendering.Skia/SkiaStreamProcessor.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,12 @@ public override void ModifyClippingIntersect(FillingRule clippingRule)
145145
_canvas.ClipPath(_currentPath, SKClipOperation.Intersect);
146146
}
147147

148+
protected override void ClipToRectangle(PdfRectangle rectangle, FillingRule clippingRule)
149+
{
150+
//_canvas.DrawRect(rectangle.ToSKRect(_height), _paintCache.GetImageDebug());
151+
_canvas.ClipRect(rectangle.ToSKRect(_height), SKClipOperation.Intersect);
152+
}
153+
148154
/// <inheritdoc/>
149155
public override void BeginMarkedContent(NameToken name, NameToken propertyDictionaryName, DictionaryToken properties)
150156
{

UglyToad.PdfPig.Rendering.Skia/UglyToad.PdfPig.Rendering.Skia.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
</ItemGroup>
4242

4343
<ItemGroup>
44-
<PackageReference Include="PdfPig" Version="0.1.10" />
44+
<PackageReference Include="PdfPig" Version="0.1.11-alpha-20250330-5fb36" />
4545
<PackageReference Include="PdfPig.Filters.Dct.JpegLibrary" Version="0.1.10.2" />
4646
<PackageReference Include="PdfPig.Filters.Jbig2.PdfboxJbig2" Version="0.1.10.2" />
4747
<PackageReference Include="PdfPig.Filters.Jpx.OpenJpegDotNet" Version="0.1.10.2" />

0 commit comments

Comments
 (0)