title: Draw a line in the center of an A4 sheet iTextSharp
body: <p>I want to drawn an line in middle of page, but my code generate a line in footer of PDF</p>
  
  <pre><code>    public void GeneratePdf()
      {
          Document document = new Document(PageSize.A4, 0, 0, 50, 50);
          var output = new FileStream("doctest.pdf", FileMode.Create);
          var writer = PdfWriter.GetInstance(document, output);
          document.Open();
  
          document.NewPage();
          PdfContentByte contentByte = writer.DirectContent;
          contentByte.SetLineWidth(1);
          contentByte.MoveTo(0, 14);
          contentByte.LineTo(document.PageSize.Width, 0);
          contentByte.Stroke();
  
          document.Close();
          writer.Close();
      }
  </code></pre>
  
  <p>How to make to drawn the line in middle of page ?</p>