I want to create pdf page in landscape mode but the browser seems to render the generated page in portrait mode always.. same issue with both IE and Firefox.. here is what I did to get Landscape mode..
Rectangle a4 = PageSize.A4;
Rectangle a4LandScape = a4.rotate();
doc.setPageSize(a4LandScape);
I can see that width>height after line 3, but once the page is rendered to browser, I get portrait again.. Is there any other way to do this?
PS: I am using old version of iText(2.7), there is no option such as Legal_LandScape for PageSize
doc.SetPageSize(PageSize.A4.Rotate());
– hdoghmen Aug 16 '15 at 11:58