title: How to set space between two cells
body: <p>In <a href="https://sourceforge.net/projects/itextsharp/" rel="nofollow">iTextSharp</a>, how to set the space between two cells(<a href="http://api.itextpdf.com/itext/com/itextpdf/text/pdf/PdfPCell.html" rel="nofollow">PdfPCell</a>)</p>
  
  <p>Code:</p>
  
  <pre><code>var doc = new Document();
  PdfWriter.GetInstance(doc, new FileStream("C:/Doc1.pdf", FileMode.Create));
  
  doc.Open();
  
  PdfPTable table = new PdfPTable(1);
  
  PdfPCell cell1 = new PdfPCell(new Phrase("Cell1"));
  cell1.Colspan = 1;
  table2.AddCell(cell1);
  
  PdfPCell cell2 = new PdfPCell(new Phrase("Cell2"));
  cell2.Colspan = 1;
  table2.AddCell(cell2);
  
  doc.Add(table);
  
  System.Diagnostics.Process.Start("C:/Doc1.pdf");
  </code></pre>
  
  <p>Here, two cells are created(<em>cell2's left border</em> overlapped with <em>cell1's border right</em>). But I need a little <em>space</em> between 2 cells.</p>