# How to Convert SVG into PNG Online in Python using REST API try: # Create an instance of the API convert_api = groupdocs_conversion_cloud.ConvertApi.from_keys(client_id, client_secret) # Define convert settings settings = groupdocs_conversion_cloud.ConvertSettings() settings.storage_name = storage_name settings.file_path = "python-testing/sample-file.svg" settings.format = "png" settings.output_path = "python-testing" request = groupdocs_conversion_cloud.ConvertDocumentRequest(settings) response = convert_api.convert_document(request) print("Successfully converted SVG to PNG format: " + str(response)) except groupdocs_conversion_cloud.ApiException as e: print("Exception while calling API: {0}".format(e.message))