PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Tue Jul 14, 2020 12:20 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Mon Mar 02, 2020 8:48 am 
Offline

Joined: Fri Feb 28, 2020 5:22 am
Posts: 1
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


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 16 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group