PDFsharp & MigraDoc Foundation https://forum.pdfsharp.net/ |
|
Border of smal images are cuted https://forum.pdfsharp.net/viewtopic.php?f=2&t=4103 |
Page 1 of 1 |
Author: | Christoph1972 [ Mon Mar 02, 2020 8:48 am ] |
Post subject: | Border of smal images are cuted |
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 |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |