Handling of Landscape orientation document

Hi,
how to identify a Landscape orientation word document and reduce the height and width of images and text in it, so that it will in a4 size layout

@pooja.jayan You can use PageSetup.Orientaton property to get orientation of pages within the section. Also, you can use PageSetup.PageWidth and PageSetup.PageHeight properties to get size of the page.

Can i do this while loading a word document?

@pooja.jayan You can get sections properties after loading the document:

Document doc = new Document(@"C:\Temp\in.docx");
// Get page orientation of sections in the document.
foreach (Section s in doc.Sections)
    Console.WriteLine(s.PageSetup.Orientation);