Skip to main content

Posts

Showing posts from June, 2021

Add Vertical Text to Word in Java

You can add vertical text in Microsoft Word by adding a textbox, typing your text in the textbox and then setting the direction of the text. Another way to add vertical text is to type it into a table cell. In this article, I am going to show you how to achieve the same programmatically in Java. Add Dependencies In order to add vertical text to Word, I use Free Spire.Doc for Java library. There are two ways to include Free Spire.Doc for Java in your Java project: For maven projects: Add the following dependency to your project’s pom.xml file: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 <repositories>         <repository>             <id>com.e-iceblue</id>             <name>e-iceblue</name>             <url>http: //repo.e-iceblue.com/nexus/content/groups/public/</url>         </repository>    </repositories>    <dependencies>         <dependency>             <groupId> e-iceblue </groupId>             <artifactId