Using ItextSharp PdfPTable, table.TotalHeight returns 0.0, but expecting a positive float value
问题 I'm using ItextSharp to create a PDF document with multiple PdfPTables. I group multiple PdfPTables using a list, and the list is created in a function and returned as a list. I then take the list and loop through it to add each PdfPTable to the document. In the case that the next PdfPTable in the list is larger than the remaining space on the document I want to add a new page. Using a breakpoint, I've noticed that "table.TotalHeight" always returns 0, when I expect it to return a positive