PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sat Dec 04, 2021 4:41 am

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 

Joined: Fri Feb 28, 2020 5:22 am
Posts: 1

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[0].AddImage("\path\xyz");
image.Width = "5cm";

I also tried with this parameters:
imageRow.Cells[0].Format.Alignment = ParagraphAlignment.Center;
imageRow.Cells[0].VerticalAlignment = VerticalAlignment.Center;

I look forward to your replies!

Kind regards

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: Google [Bot] and 28 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