Landscape not supported

VErsion Aspose.PDF : 19.2.0.0
Please find my code here ::
HtmlLoadOptions htmlLoadOptions = new HtmlLoadOptions();
htmlLoadOptions.InputEncoding = UTF_INPUT_ENCODING;
htmlLoadOptions.PageInfo.Margin.Left = 0;
htmlLoadOptions.PageInfo.Margin.Top = 0;
htmlLoadOptions.PageInfo.IsLandscape = orientation == PageOrientation.LandScape ? true : false;

Pdf is not generated in landscape. please advice.

@AshaShan

Thanks for contacting support.

Please try setting Height and Width of Page as well along with specifying orientation as follows:

htmlLoadOptions.PageInfo.IsLandscape = orientation == PageOrientation.LandScape ? true : false;
htmlLoadOptions.PageInfo.Width = Aspose.Pdf.PageSize.A4.Height;
htmlLoadOptions.PageInfo.Height = Aspose.Pdf.PageSize.A4.Width; 

Furthermore, you may also change page orientation after generating PDF from HTML, by following the instructions specified over “Change Page Orientation” article.

Please note that, latest version of the API is Aspose.PDF for .NET 18.4. In case your requirements are not met using suggested code snippet, please share your sample HTML file with us, so that we can test the scenario in our environment and address it accordingly.