Peter Neu wrote:
> Hi,
> 
> I tried Bruno's advice

No, you didn't!

> doing it like this using the Phrase object:
> 
> cell = new PdfPCell(new Phrase(erg.getBenennung(), font));

You haven't read my advice. Let me repeat:

table.addCell(new Phrase(getText(), new Font(...));

Do you see "new PdfPCell" anywhere?

 > But it does not work.

I can only repeat what I already said:
"The properties of the default cell aren't taken
  into account if you define your own PdfPCell;
  only if you use addCell(String) or addCell(Phrase)."
In other words: it would have worked if you had
followed my advice, but you didn't ;-)

br,
Bruno

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to