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

Free Support Forum - aspose.com

Print Vertical Text

How to print Text Vertical on pdf page ??

Hi Sandeep,

Thanks for contacting support.

Please try using the following code snippet to accomplish your requirement. For your reference, I have also attached the resultant PDF which I have generated with Aspose.Pdf for .NET 7.7.0.


//Instantiate Pdf instance by calling
its empty constructor

Aspose.Pdf.Generator.Pdf pdf1 = new Aspose.Pdf.Generator.Pdf();

// Create section object and add it to sections collection of PDF

Aspose.Pdf.Generator.Section sec1 = pdf1.Sections.Add();

// create a text object

Aspose.Pdf.Generator.Text text1 = new Aspose.Pdf.Generator.Text();

// Add text object to paragraphs collection of section


// Add sample text to segments collection of text object

text1.Segments.Add("This is a text in Vertical alignment");

// set rotating angle for text

text1.RotatingAngle = 90;

//create the result PDF Document