I need to create a PDF file with 100mm X 150mm (Width X Height). To create this I tried to apply following:
var doc = new iTextSharp.text.Document(new Rectangle(100f, 150f));
and
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));
But above are generating smaller/ larger size PDF. Please share suggestions that how I can convert the mm to float and make it work.