title: Blank page added when table splits due to a page break using iText 5.5.7
body: <p>I had some code that worked with iText 2.1.7. We decided to move to the latest version of iText. I tested the code with version 5.5.6 and the code also worked perfectly.</p>
  
  <p>When version 5.5.7 came out last month we decided to upgrade to that version as it had some fixes regarding performance when using nested tables and splitting rows that seemed relevant to the project.</p>
  
  <p>However in some scenarios, a blank page is added to the PDF when the table splits due to a page break. As I said, the code works fine with iText 2.1.7 and iText 5.5.6.</p>
  
  <p>Here is the code used to build the table:</p>
  
  <pre><code>    float[] widthsIllustration = { 0.75f, 8 };
      PdfPTable tableIllustration = ReportBuilderCommon.buildTable(2, 100, widthsIllustration);
      tableIllustration.setSplitLate(false);
      tableIllustration.getDefaultCell().setBorder(Rectangle.BOTTOM);
      tableIllustration.getDefaultCell().setPaddingBottom(5);
  </code></pre>
  
  <p>The table above is nested in another table created like this</p>
  
  <pre><code>PdfPTable leftColumn = ReportBuilderCommon.buildTable(1, 100);
   leftColumn.setSplitLate(false);
  </code></pre>
  
  <p>Here is the method <code>buildTable</code>:</p>
  
  <pre><code>public static PdfPTable buildTable(final int numColums, final float widthPercentage) throws DocumentException {
      PdfPTable table = new PdfPTable(numColums);
      table.setWidthPercentage(widthPercentage);
      table.getDefaultCell().setBorder(Rectangle.NO_BORDER);
  
      return table;
  }
  </code></pre>