I have a PDF generation code which was previously downloaded in Portait mode and the code behind is shown below.
Document doc = new Document(PageSize.A4, 88f, 88f, 10f, 10f);
which was working properly.
Now I need the same PDF to be converted to Landscape mode, I googled it and found this code.
Document doc = new Document(new Rectangle(288f, 144f), 10, 10, 10, 10);
doc.SetPageSize(iTextSharp.text.PageSize.A4.Rotate());
But still its displaying in Portrait mode.Any help appreciated.