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]");
template.endText();
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]");
template.endText();
Sharmila Pandith
AIM: spandith
Yahoo: spandith
MSN: spandith
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search