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)
Metadata
Release files for python-pptx-merger 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| python_pptx_merger-0.0.2.tar.gz | 2.1 MB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| python_pptx_merger-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.2 MB
Release files / python_pptx_merger-0.0.2.tar.gz
| Download URL | python_pptx_merger-0.0.2.tar.gz |
|---|---|
| Size | 2.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a95ed2f5bbc153356a7bef67ee5203c69821ee3c3e09782bf9ac2510b32670b4
|
|
BLAKE2b-256 checksum How to use checksums |
00e084c4e12155e4a8b9147e5f3bbbf003b8689d65d4df13effedc6c9fd6167f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / python_pptx_merger-0.0.2-py3-none-any.whl
| Download URL | python_pptx_merger-0.0.2-py3-none-any.whl |
|---|---|
| Size | 2.1 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
87759a780d3e83ee4b46f2eb2b2cc5e3e5ae1043476ec19f91b52c3f4ea77f6b
|
|
BLAKE2b-256 checksum How to use checksums |
825fb5f84d1bafd1ffc5e6e8dfa259a128215289ab37c5c98667cafe22e6d835
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Security for python-pptx-merger 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.