False positioning of rotated text in table cells

I try to create a dynamic (varying input texts) solution for adding rotated (90°) text within a table cell.

Example of desired result:

Adding a TextFragment with rotated text to an table cell results in unexpected output.

Some of the obversations:

  • The Text is showing outside the cell.
  • If it is multiline, the lines are overlapping.
  • If aligned to bottom, only the first character is shown.

Code:

Aspose.Pdf.Table testTable = new Aspose.Pdf.Table();
testTable.ColumnWidths = "15%";

Aspose.Pdf.Row row = new Aspose.Pdf.Row();
row.MinRowHeight = 100;

Aspose.Pdf.Cell cell = row.Cells.Add();
cell.Border = new BorderInfo(BorderSide.All, new GraphInfo());
cell.VerticalAlignment = VerticalAlignment.Bottom;

TextFragment t = new TextFragment("ABC Lorem ipsum dolor");
t.TextState.Rotation = 90;

cell.Paragraphs.Add(t);

testTable.Rows.Add(row);

page.Paragraphs.Add(testTable);

Some results with verious settings enabled/disabled:

Tested in .NET with Aspose.PDF 22.8 and 21.12.

Is there something I have missed to achieve what I am looking for with Aspose.PDF?

Similar issue:

Any update on the 4 years old ticket ID: PDFNET-44876?

Yet, my question remains, at this point, is there a way to make it work?

I tried HtmlFragment instead TextFragment as well, it solved the text overlapping but positioning was impossible and just led to weird results.

@ATC1

We have logged this problem in our issue tracking system as PDFNET-52339. You will be notified via this forum thread once this issue is resolved.

Unfortunately, there is no update available on this issue. We apologize for your inconvenience.