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

Free Support Forum - aspose.com

Vertical text rendered incorrectly in PDF generated from DOTX file


I’m using Aspose.Words ( in an ASP.NET 2.0 web application to convert word documents to PDF’s (and subsequently create thumbnail images). I’ve got a DOTX file which contains some vertical text running down the side of the page. However, in the generated PDF, this text is being incorrectly rendered as horizontal text and cuts off the side of the page.

The code for this is fairly simple, involving converting the file to XML first, and then to a PDF.

Document document = new Document(inputFile);
document.Save(“C:\MyFile.XML”, SaveFormat.AsposePdf);

Pdf pdf = new Pdf();
pdf.BindXML(“C:\MyFile.XML”, null);

The generated file, MyFile.PDF, has the text that is vertical and going down the side of the page in the word document rendered as standard horizontal text.

If you need the DOTX file to test this, please PM me and I’ll send it to you separately.




Please attach the DOTX file so I could investigate the issue you are having. The file will be visible to Aspose staff only.


Hi Denis,

The file is attached.



Hi Mun,

I would suggest you to switch to Aspose.Words 9.0.0 (http://www.aspose.com/community/files/51/.net-components/aspose.words-for-.net/default.aspx). I tried to convert the template you attached and the vertical text is displayed properly in the output PDF.

Aspose.Words 9.0.0 supports direct method for converting to PDF. Please refer to http://www.aspose.com/documentation/.net-components/aspose.words-for-.net-and-java/aspose.words.document.savetopdf_overload_1.html.