I noticed this when trying to implement rotation of text.
The smallest example is below, first will output “Hello world” as normal rotated text. Second page has the same but a 1x1 table.
Document pdfDocument = new Document();
Page pdfPage = (Page)pdfDocument.Pages.Add();
var t = new TextFragment("Hello world");
t.TextState.Rotation = 90;
pdfPage.Paragraphs.Add(t);
Page pdfPage2 = (Page)pdfDocument.Pages.Add();
var table = new Table();
table.Rows.Add(new Row());
table.Rows[0].Cells.Add(new Cell());
table.Rows[0].Cells[0].Paragraphs.Add(t);
pdfPage2.Paragraphs.Add(table);
pdfDocument.Save(@"C:\TEMP\ASPOSE.PDF");
The issue is that in the table, the text is squashed and doesn’t render properly
If i set the height of the row manually, i.e table.Rows[0].MinRowHeight = 500;
it will work,but this is no good for dynamic text which needs to wrap.
What is the expected behaviour.