def Run(self): # Create instance of the API api = Common_Utilities.Get_InfoApi_Instance() try: viewOptions = groupdocs_viewer_cloud.ViewOptions() fileInfo = groupdocs_viewer_cloud.FileInfo() fileInfo.file_path = "viewerdocs\\three-layouts.dwf" fileInfo.password = "" fileInfo.storage_name = Common_Utilities.myStorage viewOptions.file_info = fileInfo renderOptions = groupdocs_viewer_cloud.ImageOptions() renderOptions.extract_text = True viewOptions.render_options = renderOptions viewOptions.view_format = "PNG" request = groupdocs_viewer_cloud.GetInfoRequest(viewOptions) response = api.get_info(request) print("Expected response type is InfoResult: " + str(response)) except groupdocs_viewer_cloud.ApiException as e: print("Exception while calling API: {0}".format(e.message))
def Run(self): # Create instance of the API api = Common_Utilities.Get_InfoApi_Instance() try: viewOptions = groupdocs_viewer_cloud.ViewOptions() fileInfo = groupdocs_viewer_cloud.FileInfo() fileInfo.file_path = "viewerdocs\\with-hidden-rows-and-columns.xlsx" fileInfo.password = "" fileInfo.storage_name = Common_Utilities.myStorage viewOptions.file_info = fileInfo renderOptions = groupdocs_viewer_cloud.RenderOptions() spreadsheetOptions = groupdocs_viewer_cloud.SpreadsheetOptions() spreadsheetOptions.paginate_sheets = True spreadsheetOptions.count_rows_per_page = 5 spreadsheetOptions.render_hidden_rows = True renderOptions.spreadsheet_options = spreadsheetOptions viewOptions.render_options = renderOptions request = groupdocs_viewer_cloud.GetInfoRequest(viewOptions) response = api.get_info(request) print("Expected response type is InfoResult: " + str(response)) except groupdocs_viewer_cloud.ApiException as e: print("Exception while calling API: {0}".format(e.message))
def Run(self): # Create instance of the API api = Common_Utilities.Get_InfoApi_Instance() try: viewOptions = groupdocs_viewer_cloud.ViewOptions() fileInfo = groupdocs_viewer_cloud.FileInfo() fileInfo.file_path = "viewerdocs\\sample.mpp" fileInfo.password = "" fileInfo.storage_name = Common_Utilities.myStorage viewOptions.file_info = fileInfo renderOptions = groupdocs_viewer_cloud.RenderOptions() projectManagementOptions = groupdocs_viewer_cloud.ProjectManagementOptions( ) projectManagementOptions.page_size = "Unknown" projectManagementOptions.time_unit = "Months" projectManagementOptions.start_date = "2008/07/01" projectManagementOptions.end_date = "2008/07/31" renderOptions.project_management_options = projectManagementOptions viewOptions.render_options = renderOptions request = groupdocs_viewer_cloud.GetInfoRequest(viewOptions) response = api.get_info(request) print("Expected response type is InfoResult: " + str(response)) except groupdocs_viewer_cloud.ApiException as e: print("Exception while calling API: {0}".format(e.message))
def Run(self): # Create instance of the API api = Common_Utilities.Get_InfoApi_Instance() try: request = groupdocs_conversion_cloud.GetDocumentMetadataRequest() request.storage_name = Common_Utilities.myStorage request.file_path = "conversions\\password-protected.docx" response = api.get_document_metadata(request) print("Expected response type is DocumentMetadata: " + str(len(response))) except groupdocs_conversion_cloud.ApiException as e: print("Exception while calling API: {0}".format(e.message))
def Run(self): # Create instance of the API api = Common_Utilities.Get_InfoApi_Instance() try: # Retrieve supported conversion types request = groupdocs_conversion_cloud.GetSupportedConversionTypesRequest() response = api.get_supported_conversion_types(request) # Print out supported conversion types print("Supported conversion types:") for fileformat in response: print('{0} to [{1}]'.format(fileformat.source_format, ', '.join(fileformat.target_formats))) except groupdocs_conversion_cloud.ApiException as e: print("Exception when calling get_supported_conversion_types: {0}".format(e.message))
def Run(self): # Create instance of the API api = Common_Utilities.Get_InfoApi_Instance() try: # Retrieve supported file-formats response = api.get_supported_file_formats() # Print out supported file-formats print("Supported file-formats:") for fileformat in response.formats: print('{0} ({1})'.format(fileformat.file_format, fileformat.extension)) except groupdocs_comparison_cloud.ApiException as e: print("Exception when calling get_supported_comparison_types: {0}". format(e.message))
def Run(self): # Create instance of the API api = Common_Utilities.Get_InfoApi_Instance() try: viewOptions = groupdocs_viewer_cloud.ViewOptions() fileInfo = groupdocs_viewer_cloud.FileInfo() fileInfo.file_path = "viewerdocs\\sample.docx" fileInfo.password = "" fileInfo.storage_name = Common_Utilities.myStorage viewOptions.file_info = fileInfo; viewOptions.view_format = "HTML" request = groupdocs_viewer_cloud.GetInfoRequest(viewOptions) response = api.get_info(request) print("Expected response type is InfoResult: " + str(response)) except groupdocs_viewer_cloud.ApiException as e: print("Exception while calling API: {0}".format(e.message))