I am using iTextSharp to generate PDF document. Currently, the HTML contents are converted successfully into PDF document. The default page orientation is Portrait.
However, my requirement is is create PDF document with some page in Portrait and some in Landscape.
The following line generates PDF document with Portrait orientation
document.SetPageSize(PageSize.A4);
And, if i change this line to than it creates whole document in Landscape.
document.SetPageSize(PageSize.A4.Rotate());
How i can generate PDF with mixed portrait and landscape orientation?
Kindly advise.