title: ITextSharp 4.1.6. PDF Table - how to remove whitespace on top of each cell? [padding and leading already set to 0]
body: <p>I'm having a problem with ITextSharp's tables. I'd like to have cells without top &amp; bottom padding, so that they are placed closer to each other.</p>
  
  <p>Although I have set the padding and the leading of the cell to 0, the white-space still remains. </p>
  
  <p><img src="https://i.stack.imgur.com/W1JqW.png" alt="See the screen"></p>
  
  <p>Does anyone please know how to remove the whitespace ?</p>
  
  <p>EDIT:</p>
  
  <p>Thanx to prompt answer from Dylan, I've managed to resolve my issue. Here's the source snippet if someone gets across similar issue</p>
  
  <pre><code>        Document document = new Document(PageSize.A4, 5, 5, 10, 10);
          using (FileStream fs = new FileStream("C:\\Users\\brum\\Desktop\\untitled.pdf", FileMode.Create))
          {
              iTextSharp.text.pdf.PdfWriter.GetInstance(document, fs);
              document.Open();
              PdfPTable table = new PdfPTable(2);
              PdfPCell cell = new PdfPCell(new Phrase("Spanning 2 cols"));
  
              cell.Colspan = 2;
              cell.HorizontalAlignment = 1;
              cell.Padding = 0f;
              cell.UseAscender = true;
              table.AddCell(cell);
  
              table.AddCell("Next row 1");
              table.AddCell("Next row 2");
  
              document.Add(table);
              document.Close();
          }
  </code></pre>
  
  <p><code>cell.UseAscender = true; // This is the line that did the trick for me</code></p>