var loadOptions = new HtmlLoadOptions("http://localhost:8080"); loadOptions.PageInfo.Height = PageSize.A4.Height; loadOptions.PageInfo.Width = PageSize.A4.Width;Document pdfDocument = new Document(memStream, loadOptions);
pdfDocument.PageInfo.Height = PageSize.A4.Height;
pdfDocument.PageInfo.Width = PageSize.A4.Width;
Hi Tim,
I am having the exact opposite problem. In that, I try to force to Landscape and it always renders as portrait.
Hi Maria,maria-2:
I am having the exact opposite problem. In that, I try to force to Landscape and it always renders as portrait.