Hi
i have an image and some text that needs to stay in line. If the text is long, then i need it to line break under the image label. See attached photo (The screenshot is a pdf render, I just used ms paint to edit the screenshot show what I need. )
But my problem is, the image is sitting a bit to high and i want to move it down a bit. How can i accomplish that?
Here is my code:
Code:
var table = section.AddTable();
table.AddColumn(Unit.FromInch(7.5));
Image image;
var imageTextRow = table.AddRow();
var imageTextCell = imageTextRow.Cells[0];
Paragraph logoAndTextParagraph = imageTextCell.AddParagraph();
image = logoAndTextParagraph.AddImage(@"C:\Users\csabau\Downloads\HcmcPdfSpike\HcmcPdfSpike\Content\labeltest.png");
logoAndTextParagraph.AddFormattedText(" This is some information. This is some information. This is some information. This is some information. This is some information. This is some information. This is some information. This is some information. This is some information. ", _font);
image.Height = new Unit(12, UnitType.Point);