change the page orientation to landscape in itextsharp code example
Example: itextsharp landscape a4
Document pdfDoc = new Document(PageSize.A4.Rotate(), 10f, 10f, 10f, 10f);
Document pdfDoc = new Document(PageSize.A4.Rotate(), 10f, 10f, 10f, 10f);