We generally use the excellent iText library for generating pdf files using Java.
When we need to display text vertically it is simply a matter of rotating the cell containing the text by 90 degrees as shown in the following example.
PdfPCell cell = new PdfPCell(new Phrase("Some text I want to be vertical")); cell.setRotation(90);
The same technique can be used to render text at any angle.
2 Responses to “Vertical text in pdf using iText”
Leave a Reply
You must be logged in to post a comment.