Merge PowerPoint (.pptx) files
Project description
python-pptx-merger
A Python library for merging PowerPoint (.pptx) files.
Installation
-
Install libgdiplus:
- On MacOS:
brew install mono-libgdiplus - On Ubuntu:
sudo apt-get install libgdiplus
- On MacOS:
-
Install the official .NET 8.0 runtime from Microsoft's website
-
Install the package via pip:
pip install python-pptx-merger
Usage
Merge Whole Presentations
from pptx_merger import Merger
merger = Merger()
merged_doc = merger.merge_slides([src_doc_1, src_doc_2])
Merge Specific Slides
from pptx_merger import SlideRef, Merger
merger = Merger()
slide_refs = [
SlideRef(doc_idx=0, slide_idx=0),
SlideRef(doc_idx=0, slide_idx=1),
SlideRef(doc_idx=1, slide_idx=3),
SlideRef(doc_idx=0, slide_idx=3), # Note that slide refs can be out of order
]
merged_doc = merger.merge_slides([src_doc_1, src_doc_2], slide_refs)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file python_pptx_merger-0.0.1.tar.gz.
File metadata
- Download URL: python_pptx_merger-0.0.1.tar.gz
- Upload date:
- Size: 2.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b7891e4a203b11965318a3990de645657833d0ea028120960b28a1ab1173c354
|
|
| MD5 |
5546b739a11b82c878dceb1be4bb7bf0
|
|
| BLAKE2b-256 |
c22e6f41fa92d0979023688fca52083f6744daab3be2324fc8c8b2b3934a5e67
|
File details
Details for the file python_pptx_merger-0.0.1-py3-none-any.whl.
File metadata
- Download URL: python_pptx_merger-0.0.1-py3-none-any.whl
- Upload date:
- Size: 2.1 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
46f5ac78aeb262f79b65fb63042ef3466ff924fd0bb895c89ee1d30414b56702
|
|
| MD5 |
fea9bdc7641d835702248ca17f186ec8
|
|
| BLAKE2b-256 |
cd56cea98ccf145bd92f89021e49c34fc2c30d461c0a83932f5e8927d8ae95df
|