public static void Run()
        {
            var configuration = new Configuration(Common.MyAppSid, Common.MyAppKey);
            var apiInstance   = new PagesApi(configuration);

            try
            {
                var fileInfo = new FileInfo
                {
                    FilePath = "WordProcessing/four-pages.docx"
                };

                var options = new OrientationOptions
                {
                    FileInfo   = fileInfo,
                    OutputPath = "Output/change-page-orientation.docx",
                    Pages      = new List <int?> {
                        2, 4
                    },
                    Mode = OrientationOptions.ModeEnum.Landscape
                };
                var request = new OrientationRequest(options);

                var response = apiInstance.Orientation(request);

                Console.WriteLine("Output file path: " + response.Path);
            }
            catch (Exception e)
            {
                Console.WriteLine("Exception while calling api: " + e.Message);
            }
        }