I found what happened. I define a new Table which exists with 2 columns. If I never add something to the 2nd column, the first will never get drawn. Maybe an exception could be thrown there in the future? Or maybe not, what do I know ^^ ;)
Fhomasp wrote: > > I'm pretty sure the table is added. I add the nested table to the parent > table and I add the parent table to the document. That should do it. > > All exceptions (Exception e) are caught at the entry point and an > e.printstacktrace(); line is in the catch block, which is in a main > method. All other methods throw their exceptions. And an uncaught > exception should throw me right out. In this phase of development I never > hide exceptions. > > When debugging with a breakpoint I notice that the method "public void > cellLayout(PdfPCell cell, Rectangle position, PdfContentByte[] canvases)" > never gets called. > Normally it gets called when it is added to the document, right? Or at > least that's what happens when I debug while I added the supposed nested > table directly to the document. > > > > 1T3XT info wrote: >> >> Fhomasp wrote: >>> I'm not really seeing what I'm doing wrong. >> >> Are you sure you are adding the table to the document? >> Maybe it's as simple as that. >> Or maybe an exception is thrown somewhere (but swallowed >> in a catch that doesn't do anything, so that you don't >> know what went wrong). >> Or maybe you're adding the wrong number of cells. >> Basically, it could be anything, you'll have to do >> some more debugging. >> -- >> This answer is provided by 1T3XT BVBA >> >> ------------------------------------------------------------------------- >> Check out the new SourceForge.net Marketplace. >> It's the best place to buy or sell services for >> just about anything Open Source. >> http://sourceforge.net/services/buy/index.php >> _______________________________________________ >> iText-questions mailing list >> [email protected] >> 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 >> >> > > -- View this message in context: http://www.nabble.com/PdfPTable-does-not-show-if-nested-tp18026311p18029201.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ iText-questions mailing list [email protected] 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
