ashryar (1) [Avatar] Offline
#1
Hello,

I am trying to display vertical text in my pdf but vertical text is displaying it horizontally which I don't want.

Can anyone please help me out with this.My code:
PdfContentByte cb = writer.getDirectContent();
VerticalText vt=new VerticalText(cb);
Chunk trxHeader1 = new Chunk("Hello to all", font9);
vt.setVerticalLayout(100,400,5, 40, -4);
vt.setAlignment(Element.ALIGN_RIGHT);
vt.addText(trxHeader1);
vt.go();

Please guide me..if I am making any mistake?

Aashu..
blowagie (284) [Avatar] Offline
#2
Re: About vertical text