----- Original Message -----
Sent: Thursday, October 31, 2002 2:52
PM
Subject: Element.ALIGN_CENTER doesn't
work
I set:
pdfPara = new
Paragraph();
pdfPara.setAlignment(
Element.ALIGN_CENTER );
pdfPara.add( new Phrase(
elem.getText(),
new
Font( font,
((float)charState.getFontSize()) /
2.0f,
style
)));
pdfPara.add( new Phrase(
elem.getText(),
new
Font( font,
((float)charState.getFontSize()) /
2.0f,
style
)));
document.add( pdfPara
);
and then added a bunch of phrases to a paragraph
- and it aligned left all of the para.
Any ideas?
thanks -
dave