iTextSharp - draw rectangle - border width issue
<p>here's a simple code:</p>

<pre><code>var w = Utilities.MillimetersToPoints(420);
var h = Utilities.MillimetersToPoints(210);

var doc1 = new Document(new Rectangle(w, h));

PdfWriter writer = PdfWriter.GetInstance(doc1, new FileStream("Doc1.pdf", FileMode.Create));

doc1.Open();

PdfContentByte cb = writer.DirectContent;

var rect = new Rectangle(200, 200, 100, 100);
</code></pre>

<p>and now, if I do the following:</p>

<pre><code>cb.Rectangle(200, 200, 100, 100);
cb.Stroke();
</code></pre>

<p>then I see the rectangle. But I need to set its border width, so I do</p>

<pre><code> rect.BorderWidth = 5;
 rect.BorderColor = new BaseColor(0,0,0);

 cb.Rectangle(rect);
 cb.Stroke();
</code></pre>

<p>and now the rectangle is not visible. Why ?</p>