Adding Slides to Presentation in Python
Contents
[
Hide
]
Aspose.Slides - Adding Slides to Presentation
To Convert Presentation to HTML using Aspose.Slides Java for Python. Here you can see example code.
Python Code
def main(self):
\# Instantiate Presentation class that represents the presentation file
pres = self.Presentation()
\# Instantiate SlideCollection calss
slides = pres.getSlides()
i = 0
while (i < pres.getLayoutSlides().size()):
# Add an empty slide to the Slides collection
slides.addEmptySlide(pres.getLayoutSlides().get_Item(i))
i+=1
#Do some work on the newly added slide
\# Saving the presentation
save_format = self.SaveFormat
pres.save(self.dataDir + "EmptySlide.pptx", save_format.Pptx)
Download Running Code
Download Adding Slides to Presentation (Aspose.Slides) from any of the below mentioned social coding sites: