Hello,
I'm not sure whether this is a bug or I'm messing something up when using MigraDoc. I would really appreciate a bit of help here.
What I am trying to do is have a table with no borders, on a pdf that has a background image. The background image should be seen through the table. All works well if I don't assign any color to the background of the table.
However, if I want the table rows to have alternative colors (lets say transparent white and a transparent light shade of gray) the borders of the table start becoming visible.
This only happens when the background color I assign to rows is darker and transparent. I also tried to set the borders to be of the color I set on the background, but that had no effect. Oh, and also set the Visible property to false, but again, no change.
Am I doing something wrong? Maybe setting the wrong property?
CODE:
Code:
var row = table.AddRow();
row.Cells[0].AddParagraph("A");
row.Shading.Color = new Color(50, 50, 50, 50);
row = table.AddRow();
row.Cells[0].AddParagraph("B");
row.Shading.Color = new Color(50, 50, 50);
row = table.AddRow();
row.Cells[0].AddParagraph("C");
row.Shading.Color = new Color(200, 200, 200);
row = table.AddRow();
row.Cells[0].AddParagraph("D");
row.Shading.Color = new Color(50, 255, 255, 255);
Row A is the one with the issue. The rest are to show that other combinations work well.
MDDDL
Code:
\table
[
Borders
{
Width = 0
}
]
{
\columns
{
\column
\column
}
\rows
{
\row
[
Shading
{
Color = 0x32323232
}
]
{
\cell
{
A
}
}
\row
[
Shading
{
Color = RGB(50,50,50)
}
]
{
\cell
{
B
}
}
\row
[
Shading
{
Color = RGB(200,200,200)
}
]
{
\cell
{
C
}
}
\row
[
Shading
{
Color = 0x32FFFFFF
}
]
{
\cell
{
D
}
}
}
}
The version I first noticed this on was MigraDoc WPF 1.32.2608 (from nuget), but I also downloaded the issue submission project and it happened there too, and that was version 1.50.4000-beta3b.
I have the issue submission project ready to upload if needed. I haven't uploaded it yet because I still think maybe I'm doing something wrong.
You can see the issue in the following image, on row A. In the middle of it there's a visible border between the cells.
Thank you for your time and for an amazing library!