Skip to main content

Merge PowerPoint (.pptx) files

Project description

python-pptx-merger

A Python library for merging PowerPoint (.pptx) files.

Installation

  1. Install libgdiplus:

    • On MacOS: brew install mono-libgdiplus
    • On Ubuntu: sudo apt-get install libgdiplus
  2. Install the official .NET 8.0 runtime from Microsoft's website

  3. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python_pptx_merger-0.0.1.tar.gz (2.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

python_pptx_merger-0.0.1-py3-none-any.whl (2.1 MB view details)

Uploaded Python 3

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

Hashes for python_pptx_merger-0.0.1.tar.gz
Algorithm Hash digest
SHA256 b7891e4a203b11965318a3990de645657833d0ea028120960b28a1ab1173c354
MD5 5546b739a11b82c878dceb1be4bb7bf0
BLAKE2b-256 c22e6f41fa92d0979023688fca52083f6744daab3be2324fc8c8b2b3934a5e67

See more details on using hashes here.

File details

Details for the file python_pptx_merger-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for python_pptx_merger-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 46f5ac78aeb262f79b65fb63042ef3466ff924fd0bb895c89ee1d30414b56702
MD5 fea9bdc7641d835702248ca17f186ec8
BLAKE2b-256 cd56cea98ccf145bd92f89021e49c34fc2c30d461c0a83932f5e8927d8ae95df

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page