DEV Community

Cover image for Change page orientation of a Word document in C#
Atir Tahir
Atir Tahir

Posted on • Originally published at blog.groupdocs.com

3 2

Change page orientation of a Word document in C#

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.

Usage

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 : http://bit.ly/32HzJL9

Top comments (0)

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more