@mjk1813,
The VerticalTextRotationAngle property of the Cell class is not available in the new DOM approach. You can add a TextFragment node in the table’s cell to rotate text. Please try the following code:
[C#]
//Instantiate Pdf instance by calling its empty constructor
Document document = new Document();
//Add page to PDF object
Aspose.Pdf.Page page = document.Pages.Add();
// rotate text
TextFragment fragment = new TextFragment("rotated text");
fragment.TextState.Rotation = 45;
//create a table object
Aspose.Pdf.Table table1 = new Aspose.Pdf.Table();
//Specify the columns width information for table object
table1.ColumnWidths = "200 200";
//Add Paragraph
page.Paragraphs.Add(table1);
Aspose.Pdf.Row row2 = table1.Rows.Add();
Aspose.Pdf.Cell cell1Row2 = row2.Cells.Add();
cell1Row2.Paragraphs.Add(fragment);
// Save the resultant PDF document
document.Save(@"C:\Pdf\test227\Output.pdf");
This is the output PDF: Output.pdf (2.0 KB). Kindly let us know in case of any further assistance or questions.
Best Regards,
Imran Rafique