Hi,

I have a Paragraph which contains a PdfPTable, so that I can change the
indentation of the table with the Paragraph.
The Problem is, when I put the Paragraph with the table into another
PdfPTable, the inner table isn't rendered.


        public static void main(String[] args)
        {       
                try
                {
                        Document doc = new Document();
                        PdfWriter writer = PdfWriter.getInstance(doc,  
                                        new FileOutputStream("test01.pdf"));

                        doc.open();
                        
                        PdfPTable table1 = new PdfPTable(2);
                        table1.addCell(new Phrase("content"));
                        
                                PdfPTable table2 = new PdfPTable(2);
                                table2.addCell("content 2");
                                table2.addCell("content 3");
                        
                                Paragraph g = new Paragraph(); //Paragraph is 
needed to change
                                g.add(table2);                      
//indentation of table2
                        
                        table1.addCell(g);
                        
                        doc.add(table1);
                        
                        doc.close();
                }catch(Exception e){e.printStackTrace();}
        }
-- 
View this message in context: 
http://www.nabble.com/PdfPTable-in-a-PdfPCell-with-indentation-tp23295526p23295526.html
Sent from the iText - General mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to