Skip to content

Commit f057e6a

Browse files
fix table border width bug
1 parent 64edd30 commit f057e6a

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

HtmlRendererCoreNet7.PdfSharp/Core/Handlers/BordersDrawHandler.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,13 +114,13 @@ private static void DrawBorder(Border border, CssBox box, RGraphics g, RRect rec
114114
switch (border)
115115
{
116116
case Border.Top:
117-
g.DrawLine(pen, Math.Ceiling(rect.Left), rect.Top + box.ActualBorderTopWidth / 2, rect.Right - 1, rect.Top + box.ActualBorderTopWidth / 2);
117+
g.DrawLine(pen, Math.Ceiling(rect.Left), rect.Top + box.ActualBorderTopWidth / 2, rect.Right, rect.Top + box.ActualBorderTopWidth / 2);
118118
break;
119119
case Border.Left:
120120
g.DrawLine(pen, rect.Left + box.ActualBorderLeftWidth / 2, Math.Ceiling(rect.Top), rect.Left + box.ActualBorderLeftWidth / 2, Math.Floor(rect.Bottom));
121121
break;
122122
case Border.Bottom:
123-
g.DrawLine(pen, Math.Ceiling(rect.Left), rect.Bottom - box.ActualBorderBottomWidth / 2, rect.Right - 1, rect.Bottom - box.ActualBorderBottomWidth / 2);
123+
g.DrawLine(pen, Math.Ceiling(rect.Left), rect.Bottom - box.ActualBorderBottomWidth / 2, rect.Right, rect.Bottom - box.ActualBorderBottomWidth / 2);
124124
break;
125125
case Border.Right:
126126
g.DrawLine(pen, rect.Right - box.ActualBorderRightWidth / 2, Math.Ceiling(rect.Top), rect.Right - box.ActualBorderRightWidth / 2, Math.Floor(rect.Bottom));

HtmlRendererCoreNet7.PdfSharp/HtmlRendererCoreNet7.PdfSharp.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<RepositoryUrl>https://github.com/manuel3108/HtmlRendererCore-Net7</RepositoryUrl>
1111
<Description>HtmlRendererCore-Net7 is a partial port of HtmlRenderer for .NET Core.</Description>
1212
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
13-
<Version>2.0.11</Version>
13+
<Version>2.0.12</Version>
1414
<RootNamespace>HtmlRendererCore.PdfSharp</RootNamespace>
1515
</PropertyGroup>
1616

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ using (var stream = new MemoryStream())
3434
```
3535

3636
## Publishing
37+
Use Github CI/CD after creating a new release, or:
3738
- `dotnet build -c Release`
3839
- `dotnet pack -c Release ./HtmlRendererCoreNet7.PdfSharp/HtmlRendererCoreNet7.PdfSharp.csproj -o .`
3940
- `dotnet publish`

0 commit comments

Comments
 (0)