title: How to pass Rectangle size available in Millimetre to create Docment using iTextsharp
body: <p>I need to create a PDF file with 100mm X 150mm (Width X Height). To create this I tried to apply following:</p>
  
  <pre><code>  var doc = new iTextSharp.text.Document(new Rectangle(100f, 150f)); 
  </code></pre>
  
  <p>and</p>
  
  <pre><code>float height = 0;
  float width = 0;
  
  float.TryParse("100", out width);
  float.TryParse("150", out height);
  
  var doc = new iTextSharp.text.Document(new Rectangle(width, height));
  </code></pre>
  
  <p>But above are generating smaller/ larger size PDF. Please share suggestions that how I can convert the mm to float and make it work.</p>