We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Text Rotation broken when TextFragment in a table cell - Aspose PDF .NET

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;

  Page pdfPage2 = (Page)pdfDocument.Pages.Add();

  var table = new Table();
  table.Rows.Add(new Row());
  table.Rows[0].Cells.Add(new Cell());     


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.


We need to investigate this issue in details and for the purpose, we have logged an issue as PDFNET-48645 in our issue tracking system. We will look into its details and keep you informed about ticket resolution status. Please be patient and spare us some time.

We are sorry for the inconvenience.