How to convert PowerPoint Presentation Slides to PDF in Python with Aspose.Slides REST API

Hello I am running the following code locally.
I have setup the secret id and secret.

Here is the code
Screenshot from 2021-06-25 14-21-18.png (46.5 KB)

Error message
Screenshot from 2021-06-25 14-19-32.png (85.9 KB)

Whats the issue?

@laurent_risser,
Welcome to our community! Thank you for the issue description. Could share the “Aspose.pptx” file, please?

Here it is, please note that I had to convert the file into PDF since I cant share a ppt in this forum.
I am looking to extract the text and save the content of the table once I can get this script working.

@laurent_risser,
You can compress the presentation to a ZIP archive and upload it.

Hi @Andrey_Potapov

Here you have the zip

Aspose.zip (14.8 KB)

@laurent_risser,
I logged the issue with ID SLIDESCLOUD-1216 in our tracking system. Our development team will investigate this case. I will inform you of any progress.

Also is there a way for me to read the text and the table content into a ppt?

@laurent_risser,
Thank you for your question. Could you describe your requirements in more detail with examples, please?

Sure I can @Andrey_Potapov I am looking to extract the the content(text and table content) of a ppt and pptz, transform the data and past it into a json file.
I am seeing that Aspose is not able to paste the content into json so I would like to know if the app is allowing me to at least read it.
Thank you for your time.

@laurent_risser,
Thank you for the additional information. I will answer you as soon as possible.

@laurent_risser,
Could you please clarify what table content you want to extract?

I would like to extract the content of a table from a ppt.
The content must keep the structure into the json file output after I run the script.
So can I use aspose just to read the content of the table?

@laurent_risser,
I logged the issue with ID SLIDESCLOUD-1217 in our tracking system. Our development team will prepare code examples extracting text and table content for you. We will improve our documentation later. We apologize for any inconvenience caused.

@laurent_risser,
Please use the next code snippet to convert a presentation to PDF:

import asposeslidescloud

from asposeslidescloud.configuration import Configuration
from asposeslidescloud.apis.slides_api import SlidesApi
from asposeslidescloud.models.export_format import ExportFormat

configuration = Configuration()
configuration.app_sid = 'my_client_id'
configuration.app_key = 'my_app_key'
api = SlidesApi(configuration)

with open("Aspose.pptx", 'rb') as f: document = f.read()
response = api.convert(document, ExportFormat.PDF)
print('My PDF was saved to ' + response)

We will update the documentation later.

@laurent_risser,
To extract text and table content from presentation, please try to use the next code examples:
Get presentation text items
Get slide text items
Get table content