# Import modules
import groupdocs_merger_cloud
from Common import Common

# This example demonstrates how to move document page to a new position
class MovePage:
    @classmethod  
    def Run(cls):
        pagesApi = groupdocs_merger_cloud.PagesApi.from_config(Common.GetConfig())

        options = groupdocs_merger_cloud.MoveOptions()
        options.file_info = groupdocs_merger_cloud.FileInfo("WordProcessing/four-pages.docx")
        options.output_path = "Output/move-pages.docx"
        options.page_number = 1
        options.new_page_number = 2        

        result = pagesApi.move(groupdocs_merger_cloud.MoveRequest(options))        

        print("Output file path = " + result.path)
[((11, 18, 11, 54), 'groupdocs_merger_cloud.MoveOptions', 'groupdocs_merger_cloud.MoveOptions', ({}, {}), '()', False, 'import groupdocs_merger_cloud\n'), ((12, 28, 12, 93), 'groupdocs_merger_cloud.FileInfo', 'groupdocs_merger_cloud.FileInfo', ({(12, 60, 12, 92): '"""WordProcessing/four-pages.docx"""'}, {}), "('WordProcessing/four-pages.docx')", False, 'import groupdocs_merger_cloud\n'), ((9, 63, 9, 81), 'Common.Common.GetConfig', 'Common.GetConfig', ({}, {}), '()', False, 'from Common import Common\n'), ((17, 31, 17, 74), 'groupdocs_merger_cloud.MoveRequest', 'groupdocs_merger_cloud.MoveRequest', ({(17, 66, 17, 73): 'options'}, {}), '(options)', False, 'import groupdocs_merger_cloud\n')]