Hello,
first I have to say - thanks’ lot for this brilliant tool, it is really handy to build documents!
I have a little problem with the border of an image. The image has a black border, the bottom of the image is cuted or hidden.
I figured out it happens only when an image is smaller than “12cm”.
Has anybody out there an idea to fix this little problem?
I add the image in this way:
Code:
Section section = new Section();
Table table = section.AddTable();
table.Rows.Height = "7cm";
table.AddColumn("8cm");
Row imageRow = table.AddRow();
imageRow.Cells[0].AddParagraph();
Image image = imageRow.Cells[0].AddImage("\path\xyz");
image.Width = "5cm";
I also tried with this parameters:
Code:
imageRow.Cells[0].Format.Alignment = ParagraphAlignment.Center;
imageRow.Cells[0].VerticalAlignment = VerticalAlignment.Center;
I look forward to your replies!
Kind regards
Christoph