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.

[C#]

//Instantiate Pdf instance by calling
its empty constructor
<o:p></o:p>

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

sec1.Paragraphs.Add(text1);

// 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

pdf1.Save("c:/pdftest/VerticalText.pdf");