Paulo Soares wrote:
> Paragraph.setLeading(0, 1)

Yes, I must have misunderstood.
I thought you didn't want Paragraphs.
You could replace all Phrases with Paragraphs:

PdfPTable table = new PdfPTable(1);

Chunk chunk1 = new Chunk("Testing");
Paragraph p1 = new Paragraph();
p1.add(chunk1);

Image image1 = Image.getInstance("fflogo.jpg");
Chunk chunk2 = new Chunk(image1, 0, 0);
Paragraph p2 = new Paragraph();
p2.setLeading(0, 1);
p2.add(chunk2);

PdfPCell cell = new PdfPCell();
cell.addElement(p1);
cell.addElement(p2);

table.addCell(cell);

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