title: How to draw a horizontal line in pdf using pdfsharp
body: <p>How could we draw two horizontal lines of width 3cm with a text in between using pdfsharp.I know how to print a string and it's working well.</p>
  
  <p>I need to print date in between two horizontal lines .Could someone help me please.
  This is my code to print date</p>
  
  <pre><code> graph.DrawString(date1, font, XBrushes.Black, new XRect(6.259843 * 72, 0.905512 * 72, 
      pdfPage.Width.Point, pdfPage.Height.Point), XStringFormats.TopLeft);
  </code></pre>