We are doing HTML to PDF conversion. While doing the conversion, the width and height of the generated pdf is much more than A4 size. We have tried passing width and height using code below
var loadoptions = new HtmlLoadOptions();
loadoptions.PageInfo.IsLandscape = false;
loadoptions.PageInfo.Width = PageSize.A4.Height;
loadoptions.PageInfo.Height = PageSize.A4.Width;
loadoptions.PageInfo.Margin = new MarginInfo(15, 50, 15, 50);
But is is not working as expected. Can you help us out here.
Moreover can you let us know, what is the unit type (px, inch etc) for width, height and margin. There is no documentation for the same.