def Run(cls):
        api_instance = groupdocs_comparison_cloud.CompareApi.from_config(Common.GetConfig())
        
        source = groupdocs_comparison_cloud.FileInfo()
        source.file_path = "source_files/word/source.docx"
        target = groupdocs_comparison_cloud.FileInfo()
        target.file_path = "target_files/word/target.docx"              
        options = groupdocs_comparison_cloud.ComparisonOptions()
        options.source_file = source
        options.target_files = [target] 
        options.output_path = "output/result.docx"
        settings = groupdocs_comparison_cloud.Settings()
        settings.inserted_items_style = groupdocs_comparison_cloud.ItemsStyle()
        settings.inserted_items_style.highlight_color = "14297642"
        settings.inserted_items_style.font_color = "16711680"
        settings.inserted_items_style.underline = True
        settings.deleted_items_style = groupdocs_comparison_cloud.ItemsStyle()        
        settings.deleted_items_style.font_color = "14166746"
        settings.deleted_items_style.bold = True
        settings.changed_items_style = groupdocs_comparison_cloud.ItemsStyle()        
        settings.changed_items_style.font_color = "14320170"
        settings.changed_items_style.italic = True        
        options.settings = settings

        request = groupdocs_comparison_cloud.ComparisonsRequest(options)
        response = api_instance.comparisons(request)
        print("Output file link: " + response.href)
예제 #2
0
    def Run(cls):
        api_instance = groupdocs_comparison_cloud.CompareApi.from_config(Common.GetConfig())
        
        source = groupdocs_comparison_cloud.FileInfo()
        source.file_path = "source_files/word/source.docx"
        target = groupdocs_comparison_cloud.FileInfo()
        target.file_path = "target_files/word/target.docx"  
        options = groupdocs_comparison_cloud.ComparisonOptions()
        options.source_file = source
        options.target_files = [target] 
        options.output_path = "output/result.docx"

        request = groupdocs_comparison_cloud.ComparisonsRequest(options)
        response = api_instance.comparisons(request)
        print("Output file link: " + response.href)
예제 #3
0
    def Run(cls):
        api_instance = groupdocs_comparison_cloud.CompareApi.from_config(
            Common.GetConfig())

        source = groupdocs_comparison_cloud.FileInfo()
        source.file_path = "source_files/word/source.docx"
        target = groupdocs_comparison_cloud.FileInfo()
        target.file_path = "target_files/word/target.docx"
        options = groupdocs_comparison_cloud.ComparisonOptions()
        options.source_file = source
        options.target_files = [target]
        options.output_path = "output/result.docx"

        changes = api_instance.post_changes(
            groupdocs_comparison_cloud.PostChangesRequest(options))

        print("Changes count: " + str(len(changes)))
예제 #4
0
    def Run(cls):
        api_instance = groupdocs_comparison_cloud.CompareApi.from_config(
            Common.GetConfig())

        source = groupdocs_comparison_cloud.FileInfo()
        source.file_path = "source_files/word/source.docx"
        target = groupdocs_comparison_cloud.FileInfo()
        target.file_path = "target_files/word/target.docx"
        options = groupdocs_comparison_cloud.ComparisonOptions()
        options.source_file = source
        options.target_files = [target]
        options.output_path = "output/result.docx"
        settings = groupdocs_comparison_cloud.Settings()
        settings.meta_data = groupdocs_comparison_cloud.Metadata()
        settings.meta_data.author = "Tom"
        settings.meta_data.company = "GroupDocs"
        settings.meta_data.last_save_by = "Jack"
        options.settings = settings

        request = groupdocs_comparison_cloud.ComparisonsRequest(options)
        response = api_instance.comparisons(request)
        print("Output file link: " + response.href)
    def Run(cls):
        api_instance = groupdocs_comparison_cloud.CompareApi.from_config(
            Common.GetConfig())

        source = groupdocs_comparison_cloud.FileInfo()
        source.file_path = "source_files/word/source.docx"
        target = groupdocs_comparison_cloud.FileInfo()
        target.file_path = "target_files/word/target.docx"
        options = groupdocs_comparison_cloud.ComparisonOptions()
        options.source_file = source
        options.target_files = [target]
        options.output_path = "output/result.docx"
        settings = groupdocs_comparison_cloud.Settings()
        settings.calculate_component_coordinates = True
        options.settings = settings

        changes = api_instance.post_changes(
            groupdocs_comparison_cloud.PostChangesRequest(options))
        for change in changes[0:2]:
            print("Change Type: " + change.type + ", X: " + str(change.box.x) +
                  ", Y: " + str(change.box.y) + ", Text:" + change.text)

        print("...")
예제 #6
0
    def Run(cls):
        api_instance = groupdocs_comparison_cloud.CompareApi.from_config(
            Common.GetConfig())

        source = groupdocs_comparison_cloud.FileInfo()
        source.file_path = "source_files/word/source.docx"
        target = groupdocs_comparison_cloud.FileInfo()
        target.file_path = "target_files/word/target.docx"
        target1 = groupdocs_comparison_cloud.FileInfo()
        target1.file_path = "target_files/word/target_1.docx"
        target2 = groupdocs_comparison_cloud.FileInfo()
        target2.file_path = "target_files/word/target_2.docx"
        options = groupdocs_comparison_cloud.ComparisonOptions()
        options.source_file = source
        options.target_files = [target, target1, target2]
        options.output_path = "output/result.docx"
        settings = groupdocs_comparison_cloud.Settings()
        settings.inserted_items_style = groupdocs_comparison_cloud.ItemsStyle()
        settings.inserted_items_style.font_color = "16711680"
        options.settings = settings

        request = groupdocs_comparison_cloud.ComparisonsRequest(options)
        response = api_instance.comparisons(request)
        print("Output file link: " + response.href)