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.2.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.2-py3-none-any.whl (2.1 MB view details)

Uploaded Python 3

File details

Details for the file python_pptx_merger-0.0.2.tar.gz.

File metadata

  • Download URL: python_pptx_merger-0.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 a95ed2f5bbc153356a7bef67ee5203c69821ee3c3e09782bf9ac2510b32670b4
MD5 73187d46471608491c9fe645a9cb5a1f
BLAKE2b-256 00e084c4e12155e4a8b9147e5f3bbbf003b8689d65d4df13effedc6c9fd6167f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for python_pptx_merger-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 87759a780d3e83ee4b46f2eb2b2cc5e3e5ae1043476ec19f91b52c3f4ea77f6b
MD5 c5d2c736fb0659a2ba2590eb4e49f11a
BLAKE2b-256 825fb5f84d1bafd1ffc5e6e8dfa259a128215289ab37c5c98667cafe22e6d835

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