Merge POTM files to BMP together in Python
High-speed and cross-platform Python API that helps in developing applications with the ability to create, merge, inspect, or convert Microsoft PowerPoint and OpenOffice presentation files without the use of any software like Microsoft or Open Office, Adobe PDF.
Merge POTM to BMP in Python
Aspose.Slides for Python via .NET is a powerful Python library for creating and manipulating presentation files. Moreover, it provides flexible ways to combine multiple POTM presentations. When you merge one presentation to another, you are effectively combining their slides in a single presentation to obtain one file. Aspose.Slides allows you merge two presentations in different ways. You get to merge presentations with all their shapes, styles, texts, formatting, comments, animations, etc. without having to worry about loss of quality or data.
Merge POTM files to BMP using Python
To merge the PowerPoint presentations, you will need to clone the slides from one presentation to the other.
Python code for merge multiple POTM into single BMP file
import aspose.slides as slides
import aspose.pydrawing as drawing
with slides.Presentation("presentation1.potm") as pres1:
with slides.Presentation("presentation2.potm") as pres2:
for slide in pres2.slides:
pres1.slides.add_clone(slide)
for slide in pres1.slides:
slide.get_thumbnail(2, 2).save("presentation_slide_{0}.bmp".format(str(slide.slide_number)), drawing.imaging.ImageFormat.bmp)
How to merge POTM to BMP using Aspose.Slides for Python API
These are the steps to merge two POTM files and save result as BMP in Python.
Install Aspose.Slides for Python via .NET .
pip install aspose.slides
Add a library reference (import the library) to your Python project.
import aspose.slides as slides
Open the source POTM files in Python.
pres1 = slides.Presentation('pres1.potm') pres2 = slides.Presentation('pres2.potm')
Combine POTM files using add_clone method.
for slide in pres2.slides: pres1.slides.add_clone(slide)
Save presentation and get result as single BMP file.
for slide in pres1.slides: slide.get_thumbnail(2, 2).save("presentation_slide_{0}.bmp".format(str(slide.slide_number)), drawing.imaging.ImageFormat.bmp)
Export POTM To Other Supported Formats
You can also combine POTM and save to other file formats. See all supported formats below