The "\n" does nothing here. You need template.setLeading(12).
Best Regards,
Paulo Soares
> -----Original Message-----
> From: Sharmila Pandith [SMTP:[EMAIL PROTECTED]
> Sent: Friday, October 03, 2003 17:54
> To: [EMAIL PROTECTED]
> Subject: [iText-questions] New Line
>
> Hi,
>
> I am doing the following but the text doesn't appear on 2 different lines.
> How do I achieve it?
>
> TX,
> S P
>
> // we create a PdfTemplate
> PdfTemplate template = cb.createTemplate(250, 800);
>
> // we add some text
> template.beginText();
> BaseFont bf = BaseFont.createFont(BaseFont.HELVETICA,
> BaseFont.CP1252, BaseFont.NOT_EMBEDDED);
> template.setFontAndSize(bf, 12);
> template.setTextMatrix(100, 100);
> template.showText("The Davit & Miller Group \n");
> template.newlineText();
> template.showText("Asst. Vice President");
> //template.newlineShowText(" (847) 842-8105 [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>");
> template.endText();
>
>
> Sharmila Pandith
> AIM: spandith
> Yahoo: spandith
> MSN: spandith
>
> _____
>
> Do you Yahoo!?
> The New Yahoo! Shopping
> <http://shopping.yahoo.com/?__yltc=s%3A150000443%2Cd%3A22708228%2Cslk%3Ate
> xt%2Csec%3Amail> - with improved product search
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions