# How to Split PPTX to Several Single Slide Files in Python try: # Create an instance of the Document API documentApi = groupdocs_merger_cloud.DocumentApi.from_keys(app_sid, app_key) options = groupdocs_merger_cloud.SplitOptions() options.file_info = groupdocs_merger_cloud.FileInfo("python-testing\sample-powerpoint.pptx") options.output_path = "python-testing" options.pages = [1, 3] options.mode = "Pages" result = documentApi.split(groupdocs_merger_cloud.SplitRequest(options)) print("Successfully split powerpoint to single slides: " + str(result)) except groupdocs_merger_cloud.ApiException as e: print("Exception while calling API: {0}".format(e.message))