Convert a Layout Slide from a PowerPoint Presentation to PNG in Python

Howdy,
Is there a way to convert a layout slide to a PNG? I tried create a new slide using the layout_alias parameter, but it seems like slides_api.create_slide also includes the text (ie not just the blank layout).

P.S. Sorry for the repeat post, I accidentally deleted the first one.

After some more testing, it seems like this api method

        resp = slides_api.create_slide(
            name=aspose_file_name,
            folder=aspose_folder,
            layout_alias=layout_alias,
            storage=STORAGE,
        )

does actually work in most cases. It creates a new slide based on the layout_alias, and removes any static text.

However, it seems like it converts some of the placeholder text (the text that disappears when you click on it) into static text (text that is always there).

Is there a way to preserve placeholder text without converting it?

If it helps, here is an test input file and output file. All I did was call “create_slide” and pass in the layout_alias = 1.
As you can see, the output file has a new slide at the end based on the first slide in the input file.
Regular text has been removed, but some placeholder text has been converted.

source.potx.zip (102.1 KB)
output.pptx.zip (102.3 KB)

@jamieMacabacus,
Thank you for describing the issue. Unfortunately, I was unable to convert the layout slide to PNG according to your requirements.

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): SLIDESCLOUD-2020

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

1 Like

Hi Andrey,
Thank you for the update! Super appreciate it :+1:

@jamieMacabacus,
Thank you for using Aspose.Slides Cloud.