Paragraphs can't contain tables and lists in the ColumnText context. The 
only use to do this is to indent the inner object, something that you can do 
directly.

Paulo

----- Original Message ----- 
From: "Manu" <[EMAIL PROTECTED]>
To: "itext-questions" <[email protected]>
Sent: Wednesday, December 06, 2006 8:49 AM
Subject: [iText-questions] Build list in a PDF table


Hi all,
I want to insert a Paragraph filled with a list in a PdfCell.
If I do like this :
     document.open();
      PdfPCell pdfCell = new PdfPCell();
      List list = new List(true, 10);
      list.add(new ListItem("aaa"));
      list.add(new ListItem("bbb"));
      pdfCell.addElement(list);
      PdfPTable pdfPTable = new PdfPTable(2);
      pdfPTable.addCell("Test");
      pdfPTable.addCell(pdfCell);
      document.add(pdfPTable);
      document.close();
It works correctly.
But if I insert my list in a Paragraph, like this :
     document.open();
      PdfPCell pdfCell = new PdfPCell();
      List list = new List(true, 10);
      list.add(new ListItem("aaa"));
      list.add(new ListItem("bbb"));
      Paragraph p = new Paragraph();
      p.add(list);
      pdfCell.addElement(p);
      PdfPTable pdfPTable = new PdfPTable(2);
      pdfPTable.addCell("Test");
      pdfPTable.addCell(pdfCell);
      document.add(pdfPTable);
      document.close();

It doesn't work.
How can I resolve this problem ? (I need this paragraph)

Thanks for your help.

Manu

--------------------- ALICE SECURITE ENFANTS ---------------------
Protégez vos enfants des dangers d'Internet en installant Sécurité Enfants, 
le contrôle parental d'Alice.
http://www.aliceadsl.fr/securitepc/default_copa.asp



--------------------------------------------------------------------------------


> -------------------------------------------------------------------------
> 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/
> 


-------------------------------------------------------------------------
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