title: PDFsharp 1.32 to 1.50 update
body: <p>I just updated my PDFsharp packages from 1.32 to 1.50 and now I am getting this error that I can't convert <code>System.Drawing.Rectangle</code> to <code>PdfSharp.Drawing.XRect</code> . Is there anything I am missing or do I need to change this method base on the new package?</p>
  <p><a href="https://i.stack.imgur.com/qXbvQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qXbvQ.png" alt="DrawVerticalLines(graphics, page.Width, page.Height, PdfLineMarginX, PdfLineMarginY, PdfLineTopMarginY);" /></a></p>
  <pre><code>protected void DrawVerticalLines(XGraphics graphics, double pageWidth, double pageHeight, int marginX, int marginY, int topMarginY)
          {
              
              XPen pen = new XPen(XColors.Black, 0.5);
  
              graphics.DrawRectangle(pen, new Rectangle(marginX, topMarginY, (int)(pageWidth - marginX * 2), (int)(pageHeight - marginY * 2 - topMarginY)));
              
          }
  </code></pre>