title: iTextSharp table width 100% of page
body: <p>I'm trying to add a table to a document using iTextSharp. Here is an example:</p>
  
  <pre><code>Document document = new Document(PageSize.LETTER,72, 72, 72, 72);
  PdfWriter writer = PdfWriter.GetInstance(document, new FileStream("C:\\test.pdf", FileMode.Create));
  
  document.Open();
  Table table = new Table ( 2, 1 );
  table.Width = document.RightMargin - document.LeftMargin;
  
  // Cell placeholder
  Cell cell = new Cell ( new Paragraph ( "Some Text" ) );
  table.AddCell ( cell );
  cell = new Cell ( new Paragraph ( "More Text" ) );
  table.AddCell ( cell );
  document.Add ( table );
  document.Close ( );
  </code></pre>
  
  <p>I'm setting the width of the table so that it should extend the margin of the page. But when the pdf is created the table only takes about 80% of the space between the margin's. Am I doing something incorrectly here?</p>