Hello,
One more issue we found with inline paragraphs. We need render some text in a table cell. Here it is the code snippet:
private static void Main()
{
Document doc = new Document();
Page page = doc.Pages.Add();
Table table = new Table();
Row row = table.Rows.Add();
Cell cell = row.Cells.Add();
cell.Border = new BorderInfo(BorderSide.All, 1, Color.Red);
cell.Paragraphs.Add(Create(false));
cell.Paragraphs.Add(Create(true));
cell.Paragraphs.Add(Create(false));
cell.Paragraphs.Add(Create(true));
cell.Paragraphs.Add(Create(false));
page.Paragraphs.Add(table);
doc.Save(@“d:\wrong_inline_paragraph.pdf”);
}
private static TextFragment Create(bool isInline)
{
return new TextFragment(“TestParagraph”)
{
IsInLineParagraph = isInline
};
}
The output is attached. As you can see there is an indentation in the 2nd and 3rd line that is definitely wrong and it breaks the cell content.
Please advise.
One note. We’ve recently found and raised too many issues related to inline paragraphs:
and because of them (and some others) we cannot deploy the code for more than 2 months. So please set the priority to the found issues and test this functionality thoroughly.