Skip to content

Change page orientation of a Word document in C#

twitter logo ・1 min read  

Do you want to change orientation (e.g. landscape, portrait) of a single or multiple pages in a Word document? GroupDocs.Merger for .NET allows you to do this with just a few lines of code.


Below are the steps to change page orientation:

  • Initialize OrientationOptions class with desired orientation mode and page numbers
  • Instantiate Merger objectwith source document path or stream
  • Call ChangeOrientation method and pass OrientationOptions object to it
  • Call Save method specifying file path to save resultant document

Continue reading :

twitter logo DISCUSS
Classic DEV Post from Nov 21 '19

What are your favourite Alfred workflows?

Alfred is such a great tool if you use a Mac....

Atir Tahir profile image
Software developer and evangelist. now has dark mode.

Go to the "misc" section of your settings and select night theme ❤️