Merge PPSX Files and Save as PDF in Python
Combine PowerPoint Show files and export the merged presentation to PDF with a cross-platform Python API. Microsoft PowerPoint is not required.
Merge PPSX to PDF in Python
Aspose.Slides for Python via .NET
lets you merge PPSX files by cloning slides from a source Presentation into a destination Presentation. After combining the slides with SlideCollection.add_clone, call Presentation.save with SaveFormat.PDF to export the merged presentation as a single PDF document.
Merge PPSX files to PDF using Python
Open the destination and source PPSX presentations, append a clone of each source slide, and export the merged presentation as a single PDF file.
Python code to merge PPSX files and save as PDF
with slides.Presentation("presentation1.ppsx") as destination_presentation:
with slides.Presentation("presentation2.ppsx") as source_presentation:
for slide in source_presentation.slides:
destination_presentation.slides.add_clone(slide)
destination_presentation.save("merged-presentation.pdf", slides.export.SaveFormat.PDF)
How to Merge PPSX Files and Save as PDF with Aspose.Slides for Python
Follow these steps to merge two PPSX files and save the result as a single PDF document.
Install Aspose.Slides for Python via .NET by following the installation guide .
Make the
aspose.slidesnamespace available asslidesin your Python project.Open the destination and source PPSX files as
Presentationinstances.Iterate through the source slides and call
SlideCollection.add_clonefor eachSlide.Call
Presentation.savewithSaveFormat.PDFto write the merged presentation as a single PDF file.
Export PPSX to Other Supported Formats
You can also combine PPSX presentations and save the merged result in other supported formats.