Hi there,
Thanks for your inquiry. You may set PageInfo object of HtmlLoadOptions for setting output PDF page size, please check following code snippet, it will help you to accomplish the task. If the issue persist then please share your sample HTML document here, we will look into it and guide you accordingly.
HtmlLoadOptions loadOptions = new HtmlLoadOptions();<o:p></o:p>
// set the PageInfo,in Aspose.Pdf 1
inch = 72 points
loadOptions.PageInfo.Margin.Bottom = 10;
loadOptions.PageInfo.Margin.Top = 20;
loadOptions.PageInfo.Width = 600;
loadOptions.PageInfo.Height=800;
//Load HTML string
Document doc = new
Document("input.html",
loadOptions);
....
...
Best Regards,