hello,

i've found an old post about the possibility of indenting
a table by wrapping it into a paragraph. in my case
i need to indent my table in a multicolumn text, and if
i put the table in a paragraph first, the table disappears.

try {
                PdfPTable t = new PdfPTable(2);
                t.addCell("adfad");t.addCell("adfad");
               
                mct.addElement(t);
                doc.add(mct); // this table appears correctly
               
                Paragraph w = new Paragraph();
                w.add(t);
                mct.addElement(w);
                doc.add(mct); // no result
               
            } catch (DocumentException e1) {
                e1.printStackTrace();
            }

do you have any suggestions how to make it work?

thanks in advance,
jb

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar

Reply via email to