|PDFsharp & MigraDoc Foundation
|Border of smal images are cuted
|Page 1 of 1|
|Author:||Christoph1972 [ Mon Mar 02, 2020 8:48 am ]|
|Post subject:||Border of smal images are cuted|
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:
Section section = new Section();
Table table = section.AddTable();
table.Rows.Height = "7cm";
Row imageRow = table.AddRow();
Image image = imageRow.Cells.AddImage("\path\xyz");
image.Width = "5cm";
I also tried with this parameters:
imageRow.Cells.Format.Alignment = ParagraphAlignment.Center;
imageRow.Cells.VerticalAlignment = VerticalAlignment.Center;
I look forward to your replies!
|Page 1 of 1||All times are UTC|
|Powered by phpBB® Forum Software © phpBB Group