title: PDF showing blank portion in between using iTextSharp
body: <p>My iTextSharp Code is like below I am using XSLT for getting HTML design:</p>
  
  <pre><code>int pageCount = GetNoofPages(outputString);
  StringReader sr = new StringReader(outputString.Replace("###Noofpages###", pageCount.ToString()));
  byte[] content = null;
  string savedfile = string.Empty;
  using (MemoryStream myMemoryStream = new MemoryStream())
  {
      iTextSharp.text.Document pdfDoc = new iTextSharp.text.Document(PageSize.A4, 40f, 10f, 40f, 36);
      HTMLWorker htmlparser = new HTMLWorker(pdfDoc);
      StyleSheet style = new StyleSheet();
      htmlparser.SetStyleSheet(style);
      PdfWriter myPDFWriter = PdfWriter.GetInstance(pdfDoc, myMemoryStream);
      pdfDoc.Open();
      htmlparser.Parse(sr);
      HTMLWorker htmlparser1 = new HTMLWorker(pdfDoc);
      StyleSheet style1 = new StyleSheet();
      htmlparser1.SetStyleSheet(style1);
      pdfDoc.Close();
      content = AddPageNumbers(myMemoryStream.ToArray());
  }                 
  return content;
  </code></pre>
  
  <p>My output is:</p>
  
  <pre><code>Leg 1: 4311 route
  // Now rest of the page is blank
  .
  .
  .
  .
  .
  // Now it will continue on next page
  Route details:
  // remaining instructions
  </code></pre>
  
  <p>Please help me.</p>