A Python library for navigating PowerPoint slides and adding a red dot
Project description
pptx-editor
📌 pptx-editor is a Python library for modifying PowerPoint slides, allowing users to:
- Navigate between slides (next, previous, jump to a specific slide).
- Add a red dot to highlight areas in a presentation.
🚀 Features
✅ Change slides (Next, Previous, Jump to Specific Slide)
✅ Add a red dot anywhere on a slide
✅ Save modified presentations
🚀 Installation
- Copy the entire pptx_editor folder to your new project.
- Navigate to the root directory where setup.py is located.
- Install it using
pip install -e
📖 Usage
1️⃣ Import the Library
from pptx_editor.editor import PPTXEditor
📌 pptx-editor Functions Documentation
1️⃣ Navigation Functions
| Function | Description |
|---|---|
next_slide() |
Moves to the next slide (if available). |
previous_slide() |
Moves to the previous slide (if available). |
go_to_slide(slide_index: int) |
Moves to a specific slide by index. |
get_current_slide_index() |
Returns the current slide index. |
get_total_slides() |
Returns the total number of slides in the presentation. |
2️⃣ Editing Functions
| Function | Description |
|---|---|
add_red_dot(x: float, y: float, size: float = 0.3) |
Adds a red dot to the current slide at position (x, y) in inches. |
save_presentation(output_path: str) |
Saves the modified PowerPoint file to output_path. |
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
pptx_editor-0.1.2.tar.gz
(3.3 kB
view details)
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 pptx_editor-0.1.2.tar.gz.
File metadata
- Download URL: pptx_editor-0.1.2.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2aeaac60c84f305b77c0934ef920e73309a2bc2d06fd1c69a4342d5560c4c330
|
|
| MD5 |
76ee961658d367060ada420b77e60cee
|
|
| BLAKE2b-256 |
e6d285224fbed93d861ea354575600362840c423d8e97cad631351a9a19759f7
|
File details
Details for the file pptx_editor-0.1.2-py3-none-any.whl.
File metadata
- Download URL: pptx_editor-0.1.2-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a9773bfa4ec8b411f64f185ee9d63606996087d0f3d75f77d12b31a454cc4e01
|
|
| MD5 |
fb6c847710ce31524834f28c1817f5dd
|
|
| BLAKE2b-256 |
d07a6840eb8038d319b3c647168d9be6ed79b9df7a5c2c04886b54566a616f9e
|