Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » iText »

[iText-questions] Verticall Text

Telmo Cardoso

2005-06-28

Replies:

Hi,

is it possible to put some verticall text in versions 1.X. How? (because in newer versions some old Java generate pdfs wrong, and I dont want to re-code :( old files)

Normal text:

template = cb.createTemplate(templateWidth, templateHeight);
bf = BaseFont.createFont(BaseFont.HELVETICA, BaseFont.CP1252, BaseFont.NOT_EMBEDDED);
text="Some text";
template.setBoundingBox(new Rectangle(0, -10, templateWidth, templateHeight));
template.beginText();
template.setFontAndSize(bf, fontSize);
template.showText(text);
template.endText();
cb.addTemplate(template, x1,y1);


Thanks,
Telmo Cardoso
©2008 junlu.com - Jax Systems, LLC, U.S.A.